fail2ban-client set sshd banip 203.0.113.9

Category: Security & Hardening

fail2ban-client set sshd banip 203.0.113.9

Manually ban an IP address in the sshd jail

Adds an IP to the ban list of the sshd jail immediately, without waiting for the failure threshold to be hit. The address 203.0.113.9 is a documentation IP, so substitute the real offender. Undo with fail2ban-client set sshd unbanip 203.0.113.9.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.