roles/common: Increase ssh MaxAuthTries from 3 to 4

If a user has RSA, ECDSA, and ED25519 private keys present on their
system then the ssh client will offer all of these to the server
and they may not get a chance to try password auth before it fails.
This commit is contained in:
Alan Orth 2019-09-15 15:17:00 +03:00
parent cf16264f53
commit 2740f050fc
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ LogLevel VERBOSE
#LoginGraceTime 2m #LoginGraceTime 2m
PermitRootLogin prohibit-password PermitRootLogin prohibit-password
#StrictModes yes #StrictModes yes
MaxAuthTries 3 MaxAuthTries 4
#MaxSessions 10 #MaxSessions 10
#PubkeyAuthentication yes #PubkeyAuthentication yes

View File

@ -32,7 +32,7 @@ LogLevel VERBOSE
#LoginGraceTime 2m #LoginGraceTime 2m
PermitRootLogin prohibit-password PermitRootLogin prohibit-password
#StrictModes yes #StrictModes yes
MaxAuthTries 3 MaxAuthTries 4
#MaxSessions 10 #MaxSessions 10
# Password based logins are disabled - only public key based logins are allowed. # Password based logins are disabled - only public key based logins are allowed.
AuthenticationMethods publickey AuthenticationMethods publickey

View File

@ -70,7 +70,7 @@ PrintLastLog yes
TCPKeepAlive yes TCPKeepAlive yes
#UseLogin no #UseLogin no
MaxAuthTries 3 MaxAuthTries 4
#MaxStartups 10:30:60 #MaxStartups 10:30:60
#Banner /etc/issue.net #Banner /etc/issue.net

View File

@ -31,7 +31,7 @@ LogLevel VERBOSE
#LoginGraceTime 2m #LoginGraceTime 2m
PermitRootLogin prohibit-password PermitRootLogin prohibit-password
#StrictModes yes #StrictModes yes
MaxAuthTries 3 MaxAuthTries 4
#MaxSessions 10 #MaxSessions 10
#PubkeyAuthentication yes #PubkeyAuthentication yes