I installed Fail2Ban.And its service was not running. The service ran successfully when I added the following lines to the beginning of the configuration file:
Code: Select all
[sshd]
enabled = true
Code: Select all
[sshd]
port = ssh
logpath = %(sshd_log)s
backend = %(sshd_backend)s
maxretry = 2
findtime = 10
bantime = 4w
How to solve it?[1313]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 275]: section 'sshd' already exists
Thank you.