Skip to content

Commit 547a61b

Browse files
committed
Refactor Dockerfile to use a more secure method of mounting authorized_keys
1 parent 40ddd9e commit 547a61b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OS/debian-ssh/12.6/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN chmod +x /usr/start/startup.sh && \
1717
echo 'GatewayPorts yes' >> /etc/ssh/sshd_config && \
1818
echo 'X11Forwarding yes' >> /etc/ssh/sshd_config && \
1919
echo 'Port 22' >> /etc/ssh/sshd_config && \
20-
echo 'AuthorizedKeysFile /usr/start/authorized_keys .ssh/authorized_keys .ssh/authorized_keys2' >> /etc/ssh/sshd_config && \
20+
echo 'AuthorizedKeysFile /usr/start/.ssh/authorized_keys' >> /etc/ssh/sshd_config && \
2121
useradd -m -s /bin/bash devbox && \
2222
usermod -aG sudo devbox && \
2323
echo 'devbox ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \

0 commit comments

Comments
 (0)