九游平台/
弹性云服务器 ecs/
常见问题/
远程登录/
linux远程登录报错类/
远程连接linux云服务器报错:disconnected: no supported authentication methods available
更新时间:2024-11-01 gmt 08:00
远程连接linux云服务器报错:disconnected: no supported authentication methods available-九游平台
问题现象
远程连接linux云服务器报错:disconnected: no supported authentication methods available.
图1 no supported authentication methods available

可能原因
ssh服务端配置了禁止密码验证登录的策略。
处理方法
- 编辑 /etc/ssh/sshd_config 文件,检查如下设置
vi /etc/ssh/sshd_config
- 修改如下配置项:
把passwordauthentication no 改为 passwordauthentication yes
或去掉passwordauthentication yes 前面的#注释掉。
- 重启 ssh 服务。
- centos 6
service sshd restart
- centos 7
systemctl restart sshd
- centos 6
相关文档
意见反馈
文档内容是否对您有帮助?
提交成功!非常感谢您的反馈,我们会继续努力做到更好!
您可在查看反馈及问题处理状态。
系统繁忙,请稍后重试
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨