No supported authentication methods available (server sent: publickey)

 

1、putty登录出现如下报错:

 

 

2、解决方法, 修改配置文件, 重启ssh服务

root@DESKTOP-1N42TVH:/home# vim /etc/ssh/sshd_config

 

 

重启ssh服务:

root@DESKTOP-1N42TVH:/home# service ssh restart
 * Restarting OpenBSD Secure Shell server sshd

 

3、测试效果,问题解决

 

posted @ 2022-04-27 16:56  小鲨鱼2018  阅读(3414)  评论(0编辑  收藏  举报