Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error fixes: Dead debian:jessie apt-repositories and SSHD privilege separation #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

MadMowgli
Copy link

Dead debian:jessie apt-repositories

Error Message

 > [ssh-container-ssh-server 2/9] RUN apt-get -qq update:
#0 4.284 W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.66.132 80]
#0 4.284
#0 4.284 W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages  404  Not Found
#0 4.284
#0 4.284 W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found
#0 4.284
#0 4.284 E: Some index files failed to download. They have been ignored, or old ones used instead.

Fix

  • Change distro from deb:jess to ubuntu:latest

SSHD privilege separation

Error Message

2023-12-18 18:38:23 Missing privilege separation directory: /run/sshd

Fix

  • Adding command to the ssh-container Dockerfile which creates the required /run/sshd directory and sets the respective permissons.
RUN mkdir -p /run/sshd && chmod 755 /run/sshd

…on sshd startup by creating the directory & setting permissions
@MadMowgli MadMowgli marked this pull request as draft December 19, 2023 08:28
@MadMowgli MadMowgli marked this pull request as ready for review December 19, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant