updated sshd_config to be more useful for initial setup

This commit is contained in:
Asif Bacchus 2019-01-01 22:58:43 -07:00
parent 38830880d6
commit 1949e6c19f

View File

@ -12,9 +12,10 @@ ClientAliveCountMax 30
Protocol 2 Protocol 2
### Authentication settings ### Authentication settings
HostKey /etc/ssh/ed25519.key HostKey /etc/ssh/ed25519.key.pub
HostKey /etc/ssh/RSA4096.key HostKey /etc/ssh/RSA4096.key.pub
PasswordAuthentication no #PasswordAuthentication no
PasswordAuthentication yes
PermitEmptyPasswords no PermitEmptyPasswords no
ChallengeResponseAuthentication no ChallengeResponseAuthentication no
UsePAM yes UsePAM yes
@ -24,8 +25,8 @@ AuthorizedKeysFile .ssh/authorized_keys
LoginGraceTime 1M LoginGraceTime 1M
MaxAuthTries 3 MaxAuthTries 3
MaxSessions 5 MaxSessions 5
#PermitRootLogin prohibit-password #PermitRootLogin no
PermitRootLogin no PermitRootLogin yes
### Program settings ### Program settings
Banner /etc/ssh/banner Banner /etc/ssh/banner