在Centos 7.6系统下如何解决ssh连接时密码正确无法登录的问题呢?
1.在宿主机中登录小机,输入vi /etc/ssh/sshd_config按回车键进入vi编辑
2.找到PermitRootLogin,按“i”进入插入模式,将PermitRootLogin no修改为PermitRootLogin yes
3.按“ESC”键输入wq按回车键保存退出vi编辑
4.输入Service sshd restart按回车键重启服务
5.此时可以正常ssh连接登录了
Copyright © 2013-2021 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号