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

时间:2024-04-03 18:24:55

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

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

今夜重置了一下阿里云服务器,结果发现远程连接工具连不上了。 远程连接工具无法连接上云服务器的解决方案/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(重启服务)

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

成功