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