sudo fail2ban-client status sshd | grep -E 'Currently banned|Banned IP list'
Show only the banned IPs for the sshd jail
Filters the verbose status output down to the two lines that matter: how many IPs are banned right now and which addresses they are. If the list shows your own IP, you tripped the threshold and need unbanip. This is the first command to run when diagnosing an unreachable server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.