美文网首页
linux/centos无法远程连接

linux/centos无法远程连接

作者: SQUA2E | 来源:发表于2021-08-30 09:59 被阅读0次

远程练服务器时发现可以ping通,但是22端口无法连接。用

排除防火墙策略后,用systemctl status sshd发现是ssh服务没起,用systemctl start sshd 后报错

'''job for sshd.service failed because the control process exited with error code. see systemctl status sshd.service and journalctl -xe for details'''

用sshd -t查看提示ssh权限太大,用命令更改再次启动ssg

''' chmod 700  /etc/ssh/*

sshd -t'''

相关文章

网友评论

      本文标题:linux/centos无法远程连接

      本文链接:https://www.haomeiwen.com/subject/bmvniltx.html