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、测试效果,问题解决