As you could see on my last post about fail2ban, the SSH service is a popular target for brute force attacks, we really should take our time to improve our server’s security.
On top of iptables rules and fail2ban jails, we have a couple parameters that we can fine-tune on our servers to make another layer of protection.
#
SSH authentication methods
By default, SSH allows for password authentication for all users except root, which is a good starting point, but we can improve this behavior.