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
更多推荐
已为社区贡献3条内容
所有评论(0)