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