无法在 debian 12 上启动fail2ban:无法初始化 Jail 'sshd' 的任何后端

无法在 debian 12 上启动fail2ban:无法初始化 Jail 'sshd' 的任何后端

我无法fail2ban在 Debian 12 服务器上启动。我收到以下错误:

2024-04-01 23:51:42,973 fail2ban                [16176]: ERROR   NOK: ("Failed to initialize any backend for Jail 'sshd'",)
2024-04-01 23:51:42,973 fail2ban.server         [16176]: INFO    Shutdown in progress...
2024-04-01 23:51:42,973 fail2ban.observer       [16176]: INFO    Observer stop ... try to end queue 5 seconds
2024-04-01 23:51:42,993 fail2ban.observer       [16176]: INFO    Observer stopped, 0 events remaining.
2024-04-01 23:51:43,033 fail2ban.server         [16176]: INFO    Stopping all jails
2024-04-01 23:51:43,034 fail2ban.database       [16176]: INFO    Connection to database closed.
2024-04-01 23:51:43,234 fail2ban.server         [16176]: INFO    Exiting Fail2ban

我知道日志sshd会记录到systemd,并且我已相应地配置了监狱sshd

[sshd]
backend = systemd
enabled = true
port    = ssh
logpath = %(sshd_log)s
maxretry = 3

相关内容