我已关闭 root 登录和密码验证。我有一个自定义 jail.local,其永久禁令时间和最大禁令次数为 1。无效用户不会被禁止。如下所示
Aug 8 11:36:51 TWS sshd[25058]: Invalid user haxor from IP_REDACTED port 60598
Aug 8 11:36:51 TWS sshd[25058]: Received disconnect from IP_REDACTED port 60598:11: Bye Bye [preauth]
Aug 8 11:36:51 TWS sshd[25058]: Disconnected from invalid user haxor IP_REDACTED port 60598 [preauth]
看来 /etc/fail2ban/filter.d/sshd 中的 sshd.conf 没有拾取这些,因此没有禁止它们