九游平台/ 弹性云服务器 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服务端配置了禁止密码验证登录的策略。

处理方法

  1. 编辑 /etc/ssh/sshd_config 文件,检查如下设置

    vi /etc/ssh/sshd_config

  2. 修改如下配置项:

    把passwordauthentication no 改为 passwordauthentication yes

    或去掉passwordauthentication yes 前面的#注释掉。

  3. 重启 ssh 服务。
    • centos 6

      service sshd restart

    • centos 7

      systemctl restart sshd

相关文档

网站地图