关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

Centos7.6如何解决ssh连接时密码正确无法登录问题

发布时间:2023-03-28 14:14:12
1491984010112764.jpg

在Centos 7.6系统下如何解决ssh连接时密码正确无法登录的问题呢?

image.png

1.在宿主机中登录小机,输入vi /etc/ssh/sshd_config按回车键进入vi编辑

2.找到PermitRootLogin,按“i”进入插入模式,将PermitRootLogin no修改为PermitRootLogin yes

image.png

3.按“ESC”键输入wq按回车键保存退出vi编辑

image.png

4.输入Service sshd restart按回车键重启服务

5.此时可以正常ssh连接登录了

image.png



/template/Home/8a/PC/Static