当前位置:   article > 正文

[已解决]SSH远程登录失败,提示“Password authentication failed”_passwordauthentication

passwordauthentication

使用linux下ssh登陆,

ssh root@xxx.xxx.xxx.xxx

提示“Permission denied, please try again.”

然而我的密码都是对的啊啊啊啊啊。


排查点一:

查看防火墙设置:电脑->控制中心->防火墙 (Computer -> Control Center-> Firewall)

sshd的22端口已经勾选上了。


排查点二:

查看到网上的资料:http://blog.csdn.net/tangyongjiang/article/details/6045176

1. 去编辑sshd_config文件

vi /etc/ssh/sshd_config
2. 把PasswordAuthentication设成yes

别着急,再接着看

3. 去编辑ssh_config文件

 vi /etc/ssh/ssh_config
4. 把PasswordAuthentication前面的#号去掉使之生效

5. 重启sshd

/etc/init.d/sshd restart

再一次

ssh root@xxx.xxx.xxx.xxx

连接成功!!!耶!!!!





声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/316769
推荐阅读
相关标签
  

闽ICP备14008679号