Skip to content

Commit

Permalink
Update Dockerfile to remove default SSH host keys and ensure secure S…
Browse files Browse the repository at this point in the history
…SH setup
  • Loading branch information
jaydrogers committed Dec 11, 2024
1 parent 2d14bd8 commit a7f0d4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ RUN serversideup-dep-install-debian ${PACKAGE_DEPENDENCIES} && \
chmod 700 /home/$SSH_USER/.ssh && \
\
# Create run directory
mkdir -p /run/sshd
mkdir -p /run/sshd && \
\
# Remove default SSH host keys
rm -f /etc/ssh/ssh_host_*_key*

# Expose the SSH port
EXPOSE 2222
Expand Down

0 comments on commit a7f0d4c

Please sign in to comment.