sudo fail2ban-client set sshd maxretry 5

Category: VPS Management

sudo fail2ban-client set sshd maxretry 5

Change failed-attempt threshold for sshd jail

set <jail> <variable> <value> tunes a running jail without editing files: maxretry 5 means five matching failures within the findtime window trigger a ban. Changes apply immediately but revert on restart unless mirrored in jail.local. This is the live-tuning counterpart to editing the config.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.