CentOS中SSH登录使用google二次验证安全性高的,但同时登录也麻烦,接下来讲怎么取消SSH登录取消google二次验证。
工具/原料
1
CentOS 6.5
2
XShell
方法/步骤
1
修改配置/etc/pam.d/sshdvim /etc/pam.d/sshd
2
找到添加的auth required pam_google_authenticator.so然后删除或注释掉
3
修改SSH服务配置/etc/ssh/sshd_configChallengeResponseAuthentication Yes 改为 no
4
重启ssh服务service sshd restart
5
运行xshell,选择用户身份验证方法改为Password
6
然后就可以直接登录了
下一篇:老公生日送什么?
