From 1949e6c19fc34e084c18d2a8d30cc128ffac37a0 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 1 Jan 2019 22:58:43 -0700 Subject: [PATCH] updated sshd_config to be more useful for initial setup --- config/etc/ssh/sshd_config | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/config/etc/ssh/sshd_config b/config/etc/ssh/sshd_config index c638227..e16ff59 100644 --- a/config/etc/ssh/sshd_config +++ b/config/etc/ssh/sshd_config @@ -12,9 +12,10 @@ ClientAliveCountMax 30 Protocol 2 ### Authentication settings -HostKey /etc/ssh/ed25519.key -HostKey /etc/ssh/RSA4096.key -PasswordAuthentication no +HostKey /etc/ssh/ed25519.key.pub +HostKey /etc/ssh/RSA4096.key.pub +#PasswordAuthentication no +PasswordAuthentication yes PermitEmptyPasswords no ChallengeResponseAuthentication no UsePAM yes @@ -24,8 +25,8 @@ AuthorizedKeysFile .ssh/authorized_keys LoginGraceTime 1M MaxAuthTries 3 MaxSessions 5 -#PermitRootLogin prohibit-password -PermitRootLogin no +#PermitRootLogin no +PermitRootLogin yes ### Program settings Banner /etc/ssh/banner