
# 远程连接Linux云服务器报错：Disconnected: No supported authentication methods available
#### 问题现象
远程连接Linux云服务器报错：Disconnected: No supported authentication methods available.
图1No supported authentication methods available   
![](https://support.huaweicloud.com/trouble-ecs/zh-cn_image_0277132897.png "点击放大")
#### 可能原因
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**
     
    
 
