远程连接工具无法连接上云服务器的解决方案/Disconnected: No supported authentication methods available (server sent: )

版权声明: https://blog.csdn.net/weixin_39200308/article/details/81229883

Disconnected: No supported authentication methods available (server sent: )

远程连接工具无法连接上云服务器的解决方案

今夜重置了一下阿里云服务器,结果发现远程连接工具连不上了。


找了资料,发现了问题所在。
首先,我们需要上阿里云服务器的控制器,使用其远程连接
按照这命令
cd /etc/ssh/ (进入ssh文件夹)
ls (展示该文件夹所有文件)
vi /etc/ssh/sshd_config(打开sshd_config文件)
(注意,这里我们要选的是sshd_config,,而不是ssh_config)
然后我们找到找到PasswordAuthentication no改为yes保存(vi命令,不做详细交流)

最后命令: systemctl restart sshd.service(重启服务)

成功

猜你喜欢

转载自blog.csdn.net/weixin_39200308/article/details/81229883