gpt4 book ai didi

ubuntu - pam_unix.so 在成功登录时打印 "authentication failure"

转载 作者:行者123 更新时间:2023-12-04 18:47:05 24 4
gpt4 key购买 nike

/var/log/messages显示一条消息

Jul  6 13:00:05 orbit-32 sshd[11517]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.98.106  user=admin

虽然我的密码验证成功并且我已登录。我正在使用带有 pam_unix.so 的 PAM作为唯一的插件。怎么会这样?

最佳答案

如果启用 audit登录 pam_unix 并允许使用 syslog.conf 进行调试日志记录,您将看到以下内容:

 debug2: input_userauth_request: try method none [preauth]
...
pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.98.106 user=admin

登录方法“无”原来是 sshd 尝试使用空密码登录。这显然是 PAM 规范的一部分,参见 http://www.gossamer-threads.com/lists/openssh/users/43558详情。

要修复它,请设置 PermitEmptyPasswords在 sshd_config 中设置为“否”。这将防止 sshd 对 PAM 尝试空密码。

关于ubuntu - pam_unix.so 在成功登录时打印 "authentication failure",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31246845/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com