No supported authentication methods available (server sent: publickey)错误解决

No supported authentication methods available (server sent: publickey)错误解决

1
https://blog.csdn.net/cl2227619761/article/details/109840203

解决办法:

1
vi /etc/ssh/sshd_config
1
2
PermitRootLogin yes           //这边no要改成yes
PasswordAuthentication yes    //这边no要改成yes
1
systemctl restart sshd.service

Leave a Reply

Your email address will not be published. Required fields are marked *