前言:处理问题过程中遇到很多用户在vnc控制台启动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 报错:/var/empty/sshd must be owned by root and not group or world-writable.如下。
报错如图:[[email protected]~]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.
[[email protected]~]# sshd -t
/var/empty/sshd must be owned by root and not group or world-writable.
原因:通过报错提示看是/var/empty/sshd权限问题导致,知道问题了就好办了。
注意:sshd无法启动的原因有很多,一般执行sshd -t 会显示具体报错,若是其他报错,请根据报错搜索下解决方法。
处理方法:
该报错是/var/empty/sshd权限问题导致sshd无法启动。
请登录VNC控制台执行如下命令即可解决。
chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart
亲爱的:被墙域名跳转TG:@qianhenetwork QQ:851617266,可否收藏+评论+分享呢?
文章评论 本文章有个评论