putty 报错no supported authentication methods available (server sent:publickey…),gassapi-keyex,gassapi-with-mic)

通过putty连接虚拟机时,报错,如下图
putty 报错no supported authentication methods available (server sent:publickey...)
解决方法如下:
以管理员身份登录(sudo su - root),修改sshd_config文件,将PasswordAuthentication改为yes,
ChallengeResponseAuthentication也改为yes:
putty 报错no supported authentication methods available (server sent:publickey...)
putty 报错no supported authentication methods available (server sent:publickey...)
重启sshd服务,在/bin目录下输入systemctl restart sshd.service
putty 报错no supported authentication methods available (server sent:publickey...)
重新打开putty就可以登陆成功
putty 报错no supported authentication methods available (server sent:publickey...)

相关文章:

  • 2021-06-14
  • 2022-02-15
  • 2021-11-13
  • 2022-12-23
  • 2022-01-05
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2021-09-04
  • 2022-01-14
  • 2022-12-23
  • 2021-08-19
  • 2021-05-04
  • 2021-04-28
相关资源
相似解决方案