0


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

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
标签: ssh linux 服务器

本文转载自: https://blog.csdn.net/qq_21410965/article/details/129432953
版权归原作者 小白走天下 所有, 如有侵权,请联系我们删除。

“ssh服务无法启动 报错:job for sshd.service failed”的评论:

还没有评论