fail2ban watches log files and temporarily blocks IP addresses that fail to log in too many times.
sudo apt install fail2ban sudo systemctl enable --now fail2ban sudo fail2ban-client status sshd