feat: remove welcome banner

This commit is contained in:
Justin Lin committed 2024-10-13 16:31:17 +08:00
1 parent a6720cfe39
commit 2a3429106c
4 files changed
+10 -20

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ COPY ./ssh_pubkey /home/${USERNAME}/.ssh/authorized_keys
RUN chmod 600 /home/${USERNAME}/.ssh/authorized_keys \
&& chmod 700 /home/${USERNAME}/.ssh \
&& chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.ssh
RUN rm -f /etc/motd /etc/issue /etc/issue.net /etc/update-motd.d/*
RUN service ssh start
+3 -3
View File
@@ -34,7 +34,7 @@ Include /etc/ssh/sshd_config.d/*.conf
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
PubkeyAuthentication yes
# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
@@ -86,11 +86,11 @@ UsePAM yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no