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

Unable to start ssh service under centos7

王林
Release: 2020-04-01 10:17:12
Original
5924 people have browsed it

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
Copy after login

Solution:

1. Check the specific error message

sshd -t
/var/empty/sshd must be owned by root and not group or world-writable
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template