Setting up limited password retries
Setting up limited password tries is a good way to prevent your SSH server from brute force attacks., in addition to fail2ban which does this automatically for SSH.
Open the SSH configuration file.
Set the value of the
MaxAuthTries
option.
The SSH server will allow only 3 login attempts per connection.
Last updated