roles/common: Limit number of SSH authentication attempts
The default in later OpenSSH is 6, which seems too high. If you can't get your password correct after 3 tries then I think you need help. Eventually I'd like an easy way to enable blocking of repeated login attempts at the firewall level. I think it's possible in firewalld.
This commit is contained in:
parent
4f6d02922a
commit
963bf65099
@ -32,7 +32,7 @@ LogLevel VERBOSE
|
|||||||
#LoginGraceTime 2m
|
#LoginGraceTime 2m
|
||||||
PermitRootLogin prohibit-password
|
PermitRootLogin prohibit-password
|
||||||
#StrictModes yes
|
#StrictModes yes
|
||||||
#MaxAuthTries 6
|
MaxAuthTries 3
|
||||||
#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,6 +70,7 @@ PrintLastLog yes
|
|||||||
TCPKeepAlive yes
|
TCPKeepAlive yes
|
||||||
#UseLogin no
|
#UseLogin no
|
||||||
|
|
||||||
|
MaxAuthTries 3
|
||||||
#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 6
|
MaxAuthTries 3
|
||||||
#MaxSessions 10
|
#MaxSessions 10
|
||||||
|
|
||||||
#PubkeyAuthentication yes
|
#PubkeyAuthentication yes
|
||||||
|
Loading…
Reference in New Issue
Block a user