fail2ban-client get sshd banned

Category: Security & Hardening

fail2ban-client get sshd banned

List currently banned IPs in the sshd jail

Prints the IP addresses fail2ban has banned for the sshd jail. Compare with fail2ban-client status sshd, which shows banned and failed counts plus the current log position. Useful for verifying that unban commands took effect.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.