升级SSH8.5之后,SSH服务器拒绝了密码解决办法
升级Open_SSH8.5之后,报错“SSH服务器拒绝了密码,请再试一次”。
修改sshd配置文件:/etc/ssh/sshd_config
PermitRootLogin yes PubkeyAuthentication no PasswordAuthentication yes UseLogin yes
重启sshd服务(service sshd restart),问题得以解决。
备注:
我的是lnmp,按照上面的修改后,xshell登录出现问题;后来我只改了一行,然后重启服务问题就搞定了:
PasswordAuthentication yes