ssh服务无法启动 报错:job for sshd.service failed

avatar
作者
筋斗云
阅读量:0

ssh启动时报错:job for sshd.service failed because the control process exited with error code. See systemctl status sshd.service and “journalctl -xe” for details

1、linux启动linux报错

[root@centos~]# systemclt 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 

2、排查报错原因

[root@centos~]#sshd  -t Missing privilege separation directory: /var/empty/sshd/ 

3、解决方法

[root@centos~]# mkdir /var/empty/sshd/etc [root@centos~]# cd /var/empty/sshd/etc [root@centos~]# ln -s /etc/localtime localtime 

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!