sudo apt-get install fail2ban
sudo nano /etc/fail2ban/jail.conf
sudo systemctl restart fail2ban.service