Skip to content

Commit

Permalink
REmove noloing.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Feb 28, 2024
1 parent 5a10547 commit d6e4144
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL OpenSSH="8.0p1"
LABEL Tini="0.19.0"
LABEL Name="CentOS OpenSSH"
LABEL VERSION="2"
LABEL build_date="2023-06-13"
LABEL build_date="2024-02-28"

ENV TINI_VERSION v0.19.0

Expand Down
5 changes: 4 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Making all required files if they are not existing. (This means
# you may add a Docker volume on /etc/ssh or /root to insert your
# own files.
# own files.)
test -f /etc/ssh/ssh_host_ecdsa_key || /usr/bin/ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -C '' -N ''
test -f /etc/ssh/ssh_host_rsa_key || /usr/bin/ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -C '' -N ''
test -f /etc/ssh/ssh_host_ed25519_key || /usr/bin/ssh-keygen -q -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -C '' -N ''
Expand All @@ -19,5 +19,8 @@ chown -R root:root /root/.ssh
/usr/bin/echo "Please save the printed private RSA key and login using:"
/usr/bin/echo "\"ssh -i \${savedkey} root@\${ipaddress}\""

# Remove /run/nologin, normally removed by systemd-user-sessions.
rm /run/nologin

# Now start ssh.
/usr/sbin/sshd -D

0 comments on commit d6e4144

Please sign in to comment.