Recommended fail2ban configuration?

There is also AbuseIPDB.

These services were useful before every doorbell and fridge could be used for attacks.

Installing fail2ban Debian/Ubuntu server will by default scan failed ssh login attempts and ban these IPs for a while. This is sufficient to slow down SSH brute force attacks for a while. But it only does this based on certain SSH failure patterns.

You can also set up an iptables rule to limit the number of connections to the SSH port per time period. This will also affect legitimate users, so be aware of that. If you are on Debian/Ubuntu and have not applied any other firewall configuration thing, Arno IPTables Firewall is a good script which applies a whole bunch of excellent rules. apt install arno-iptables-firewall, but be careful, a miss configuration will lock you out, so use the host’s “emergency console”. it includes an optional optional SSH bruteforce rule.