无法通过SSHlogin

无法通过sshuser1身份login到SLES服务器。 同时我可以以root用户身份login,没有任何问题。 authentication方法是基于密码的。 在/etc/ssh/sshd_config我有PasswordAuthentication yes

node1:~ # ssh -v -v -v user1@node2input密码后给出:

 Password: debug3: packet_send2: adding 32 (len 17 padlen 15 extra_pad 64) debug1: Authentications that can continue: publickey,password,keyboard-interactive debug2: userauth_kbdint debug2: we sent a keyboard-interactive packet, wait for reply debug2: input_userauth_info_req debug2: input_userauth_info_req: num_prompts 1 Password: 

以下日志条目存在于授权日志文件中,

 Jul 6 13:44:37 node2 sshd[23303]: pam_listfile(sshd:auth): Refused user user1 for service sshd Jul 6 13:44:39 node2 sshd[23294]: error: PAM: Authentication failure for user1 from node1 

问题出在sshd守护进程/etc/pam.d/sshd PAMconfiguration文件中。 /etc/pam.d/sshd的raw:

 auth required pam_listfile.so item=user sense=deny file=/etc/sshdusers onerr=succeed 

意味着pam_listfile模块将拒绝/etc/sshdusers列出的所有用户的sshd服务