Skip to content

Commit 0472aae

Browse files
committed
fix: remove 'PermitRootLogin yes' from sshd_config for improved security
Signed-off-by: Yun Pan <[email protected]>
1 parent 9161841 commit 0472aae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

OS/ubuntu-cuda/24.04/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ RUN chmod +x /usr/start/startup.sh && \
3232
echo 'GatewayPorts yes' >> /etc/ssh/sshd_config && \
3333
echo 'X11Forwarding yes' >> /etc/ssh/sshd_config && \
3434
echo 'Port 22' >> /etc/ssh/sshd_config && \
35-
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && \
3635
echo 'AuthorizedKeysFile /usr/start/.ssh/authorized_keys' >> /etc/ssh/sshd_config && \
3736
echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config && \
3837
echo 'PermitRootLogin prohibit-password' >> /etc/ssh/sshd_config && \

0 commit comments

Comments
 (0)