just tested if fail2ban works for sshd and it does not work here is the log:
2017-02-14 17:20:17,875 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:20:19,884 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:21:05,392 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:21:06,999 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:21:49,076 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:21:49,930 fail2ban.actions [9452]: NOTICE [sshd] Ban 1.2.3.4
2017-02-14 17:21:51,391 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:22:03,555 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:22:05,459 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:24:05,984 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:24:07,637 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
2017-02-14 17:24:08,420 fail2ban.actions [9452]: NOTICE [sshd] 1.2.3.4 already banned
2017-02-14 17:24:13,421 fail2ban.filter [9452]: INFO [sshd] Found 1.2.3.4
and i can still login with that banned IP…
IP is changed for privacy