FORMULAv2.6.0
sshguard for macOS
Protect from brute force attacks against SSH
Installation on macOS (Apple Silicon & Intel)
brew install sshguard
Package Metadata
| Identifier | sshguard |
|---|---|
| Current Version | 2.6.0 |
| Tap Repository | homebrew/core |
| License | ISC |
| Upstream Homepage | https://www.sshguard.net/ |
| Last Verified | 2026-11-26T14:43:31Z |
Engineering Caveats
Add the following lines to /etc/pf.conf to block entries in the sshguard table (replace $ext_if with your WAN interface): table <sshguard> persist block in quick on $ext_if proto tcp from <sshguard> to any port 22 label "ssh bruteforce" Then run sudo pfctl -f /etc/pf.conf to reload the rules.
Related macOS Packages
sshfsFile system client based on SSH File Transfer ProtocolsshpassNon-interactive SSH password authssh3Faster and richer secure shell using HTTP/3sshportalSSH & Telnet bastion serverssh-vaultEncrypt/decrypt using SSH keyssshsGraphical command-line client for SSHssh-tpm-agentSSH agent for Trusted Platform Module (TPM) key storagesshtrixSSH login cracker