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