遠程連接Linux云主機報錯:Disconnected: No supported authentication methods available
更新時間 2023-09-07 16:53:54
最近更新時間: 2023-09-07 16:53:54
分享文章
本文主要介紹遠程連接Linux云主機報錯:Disconnected: No supported authentication methods available如何處理。
問題現象
遠程連接Linux云主機報錯:Disconnected: No supported authentication methods available.
圖 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