Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

System and Network configuration • [Solved] Fail2Ban says: section 'sshd' already exists

$
0
0
Hello,
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:

[sshd]enabled = true
Now I want to configure Fail2Ban for SSH service and my settings are as follows:

Code:

[sshd]port    = sshlogpath = %(sshd_log)sbackend = %(sshd_backend)smaxretry  = 2findtime  = 10bantime   = 4w
When I restart the Fail2Ban service, I see the following error message:
[1313]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 275]: section 'sshd' already exists
How to solve it?

Thank you.

Statistics: Posted by jasonnix — 2024-02-26 07:14 — Replies 1 — Views 100



Viewing all articles
Browse latest Browse all 3260

Trending Articles