Home  >  Article  >  Operation and Maintenance  >  Unable to start ssh service under centos7

Unable to start ssh service under centos7

王林
王林Original
2020-04-01 10:17:125887browse

Unable to start ssh service under centos7

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn