sudo ufw limit ssh

Category: Self-Hosting

sudo ufw limit ssh

Rate-limit SSH connections to block brute-force login attempts — automatically bans IPs with too

Implements connection-rate limiting on SSH — automatically blocks IPs that attempt more than 6 connections in 30 seconds. A simple brute-force defence.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.