linux/centos无法远程连接

远程练服务器时发现可以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'''

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容