fail2ban
sudo apt install -y fail2ban
and in few hours
sudo fail2ban-client status
# Status
# |- Number of jail: 1
# `- Jail list: sshd
sudo fail2ban-client status sshd
# Status for the jail: sshd
# |- Filter
# | |- Currently failed: 1
# | |- Total failed: 194
# | `- File list: /var/log/auth.log
# `- Actions
# |- Currently banned: 0
# |- Total banned: 15
# `- Banned IP list: