Google authenticator 身份验证,用户拒绝解决办法:
Nov 5 09:56:03 aaa6174 unix_chkpwd[1506]: password check failed for user (root)
Nov 5 09:56:03 aaa6174 sshd[1406]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.88.5 user=root
Nov 5 09:56:05 aaa6174 sshd[1400]: error: PAM: Cannot make/remove an entry for the specified session for root from 192.168.88.5
Nov 5 09:56:06 aaa6174 sshd(pam_google_authenticator)[1537]: Failed to read "/root/.google_authenticator"
解决办法:
setenforce 0
[root@athBackup111 openstack]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted
转载于:https://blog.51cto.com/swq499809608/1572018