远程访问服务器时,出现no supported authentication methods available

来源:互联网 发布:鼎捷软件股票 编辑:程序博客网 时间:2024/05/23 01:25

   如果用Putty登录Linux的时候,提示no supported authentication methods available,可以

  1.更改文件/etc/ssh/sshd_config试试,作如下更改:

   PasswordAuthentication yes

  2.重启服务器

具体操作:

vi /etc/ssh/sshd_config

  PasswordAuthentication yes

systemctl restart sshd.service 重启服务才有效

service nginx restart  重启服务器即可
0 0
原创粉丝点击