Step 1: Create Local Configuration
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.localStep 2: Edit SSH Settings
sudo nano /etc/fail2ban/jail.localFind the [sshd] section and adjust:
[sshd]
enabled = true
maxretry = 3
bantime = 3600
findtime = 600Step 3: Restart Fail2ban
sudo systemctl restart fail2banStep 4: Check New Settings
sudo fail2ban-client status sshd