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
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐