yum install sudo wget nano vim -y
sudo yum install install epel-release -y
sudo yum install fail2ban -y

sudo systemctl enable fail2ban

echo '[DEFAULT]
# Ban hosts for one hour:
bantime = 3600

# Override /etc/fail2ban/jail.d/00-firewalld.conf:
banaction = iptables-multiport

[sshd]
enabled = true' >/etc/fail2ban/jail.local

systemctl restart fail2ban
fail2ban-client status sshd
