fail2ban Banned You: Unban Without Disabling It

Symptom

SSH suddenly refuses your IP; fail2ban log shows the ban.

Root cause

Repeated auth failures ( VPN, fat-fingered password, or aggressive health checks).

Fix, in order

1. Unban by jail and IPfail2ban-client set sshd unbanip <your-ip>
2. Whitelist yourself permanentlyignoreip = 127.0.0.1/8 <your-cidr> # in jail.local
3. Check WHY it counted failurestail -50 /var/log/fail2ban.log

Prevent it coming back

Key-based SSH makes most ban triggers vanish.

Run it on clean infra

Spinning up a fresh box to reproduce or escape this error?

DevOps tools shelf

Related

Cloud & DevOps tool comparisons · Hardware build guides

NinjaOps publishes free engineering guides. Some outbound links are affiliate links: they cost you nothing and support the site.

Last reviewed 2026-10-02 · NinjaOps SEO grid · DevOps blog