sshguard

Protects SSH servers from brute force attacks by monitoring logs

brewmacoslinux
Try with needOr install directly
Source

About

Protect from brute force attacks against SSH

Commands

sshguard

Examples

Start sshguard to monitor SSH attacks and block offenders$ sudo sshguard
Run sshguard with custom configuration file$ sudo sshguard -c /etc/sshguard/sshguard.conf
Start sshguard in foreground for debugging$ sudo sshguard -f /var/log/auth.log