ssh连接时出现如下问题:
1.密码错误(修改密码依旧登陆不了)

解决方法:

修改: #PasswordAuthentication yes 为: PasswordAuthentication yes
修改: PermitRootLogin prohibit-password 为: PermitRootLogin yes

vim /etc/ssh/sshd_config
PasswordAuthentication yes #no修改为yes
PermitRootLogin yes #prohibit-password修改为yes

接下来需要重新启动ssh

systemctl restart ssh

再一次连接就会成功了

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐