Instant, easy setup. Just 4 commands, and your server will be protected:
dnf install epel-releasednf install fail2bannano /etc/fail2ban/jail.local- Paste this:
[sshd] enabled = true - Save and quit
- Paste this:
systemctl enable --now fail2ban
To check if it's working:
fail2ban-client status sshd