解决xshell-ssh远程登录,只能通过public key登录导致无法登录的情况

xshell无法通过密码登录的问题如下:

1、登录主机:vi /etc/ssh/sshd_config

2、搜索关键字:PasswordAuthentication

3、将PasswordAuthentication no改为yes

4、保存后重启网络设置:service sshd restart

 5、xshell再次登录可密码登录

 

 

 

posted @ 2021-06-12 23:09  Mrwhite86  阅读(1423)  评论(0编辑  收藏  举报