fail2ban-client set sshd bantime 7200

Category: Security & Hardening

fail2ban-client set sshd bantime 7200

Change the ban duration of the sshd jail

Sets how long the sshd jail keeps offenders banned, here 7200 seconds, which is 2 hours. The change applies immediately but is not written to the config file, so it resets on reload. Set bantime in jail.conf for a permanent change.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.