文档首页> 弹性云服务器 ECS> 用户指南 (阿布扎比区域)> 常见问题> 登录与连接> 远程连接Linux云服务器报错:Disconnected: No supported authentication methods available
更新时间:2022-02-22 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

  1. 修改如下配置项:

    把PasswordAuthentication no 改为 PasswordAuthentication yes

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

  2. 重启 SSH 服务。
    • CentOS 6

      service sshd restart

    • CentOS 7

      systemctl restart sshd