Blocking IP addresses of attackers is a lost battle. It's incredibly easy for attackers to get a different IP...
I wrote (in 2016) an article with 3 simple tricks (that don't require installing any other app, like fail2ban) that have been working great for me to stop tentative brute force attacks: withblue.ink/2016/07/15/stop-ssh-b... TL;DR: use SSH keys, rate-limit connections to port 22 (using iptables), and/or change the SSH default port.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.