问题:
启动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、查看具体报错信息
sshd -t /var/empty/sshd must be owned by root and not group or world-writable
查看应该和权限相关。
2、登录一台正常的机器查看/var/empty/sshd权限为711,而客户/var/empty/sshd 权限为777。
3、修改权限
chmod 711 /var/empty/sshd #修改权限为711
相关教程推荐:centos教程
以上就是centos7下无法启动ssh服务的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号