ufw limit ssh

Category: Security & Hardening

ufw limit ssh

Rate-limit SSH connections to block brute force

Allows port 22 but limits each source IP to a few connection attempts per minute, automatically refusing faster repeaters. It is a lightweight alternative to fail2ban for SSH protection. Set the rule before enabling ufw so you never lock yourself out.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.