Problem:
The following error occurs when starting the ssh service:
job for sshd.service failed because the control process exited with error code. see systemctl status sshd.service and journalctl -xe for details
Solution:
1. Check the specific error message
sshd -t /var/empty/sshd must be owned by root and not group or world-writable
Viewing should be related to permissions.
2. Log in to a normal machine and check that the /var/empty/sshd permission is 711, while the customer /var/empty/sshd permission is 777.
3. Modify permissions
chmod 711 /var/empty/sshd #修改权限为711
Recommended related tutorials: centos tutorial
The above is the detailed content of Unable to start ssh service under centos7. For more information, please follow other related articles on the PHP Chinese website!