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:
parent
cf16264f53
commit
2740f050fc
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user