关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

SSH登录服务器报错 no supported authentication methods

发布时间:2023-05-10 10:56:31
1491984010112764.jpg

调试服务器安装cloud-init  卸载后发现SSH 无法登录

image.png



解决方案 

终端下 登录  打开   /etc/ssh/sshd_config

修改 修改PasswordAuthentication no 为:  PasswordAuthentication yes

image.png


然后执行重启sshd服务

service sshd restart 

/etc/init.d/sshd restart

image.png

成功。



/template/Home/8a/PC/Static