SSHD Restart error: job for sshd.service failed Becaue the Control Process Exited with Error Code. SEE "Systemm

tags: Bug in the project  centos  sftp

SSHD Restart error: job for sshd.service failed becaped the control process exited with error code. SEE "Systemm" Systemm

View the reason for the error

/usr/sbin/sshd -T


or

These errors are caused by the wrong position of the new SSHD configuration attribute

before fixing:

Subsystem sftp internal-sftp
UsePAM yes
Match user sftpuser1
ForceCommand internal-sftp
ChrootDirectory /data/wwwroot/user1/

UseDNS no
AddressFamily inet
PermitRootLogin yes
SyslogFacility AUTHPRIV
PasswordAuthentication yes

After modification:

UseDNS no
AddressFamily inet
PermitRootLogin yes
SyslogFacility AUTHPRIV
PasswordAuthentication yes

Subsystem sftp internal-sftp
UsePAM yes
Match user sftpuser1
ForceCommand internal-sftp
ChrootDirectory /data/wwwroot/user1/

Put the new attributes behind the attribute block of the error, restart

Intelligent Recommendation

[Linux] An error was reported when changing the ss port number on CentOS7: Job for sshd.service failed because the control process exited with error

Problem Description An error is reported when changing the ssh port number on CentOS7: Cause Analysis Use the following command to view the port number of ssh allowed by SElinux If prompted that it is...

docker error:. Job for docker.service failed because the control process exited with error code See "sy ...

centos start docker Service error: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for ...

[Linux] Error Job for vsftpd.service failed because the control process exited with error code. See "syst

My environment: Ali cloud centos7.2 set up ftp Vsftpd service to start, error: Job for vsftpd.service failed because the control process exited with error code See "systemctl status vsftpd.servic...

Error when starting docker: Job for docker.service failed because the control process exited with error code. See

Use Docker in Liunx Error: This problem was reported when starting the systemctl start docker command. I found some experience on Baidu, and the solution is as follows Solution: Uninstall the previous...

After installing docker, start reporting an error Job for docker.service failed because the control process exited with error code. See

After installing docker, start error Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe&rdquo...

More Recommendation

The server reported an error: Job for httpd.service failed because the control process exited with error code. See

  Error message: Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.  ...

MySQL installation Last startup error - Job for mysqld.service failed Because The Control Process Exited with error code. See

MySQL installation Last startup error: No response when viewing 3306 Solution Then view...

Docker launched an error Job for docker.service failed Because The Control Process Exited with error code. See "SY

Error View status Discover its display problem: Big intending is that this kernel's selinux does not support overlay2 graphics drive, either update the kernel or turns off SELinux. Solution: Add-Selin...

MySQL startup error Job for mysqld.service failed because the control process exited with error code. See “sys

Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details. View tail -n 300 /var/...

Restart the NIC Note. Job for Network.Service Failed Because The Control Process Exited with error code.

Question: After configuring static IP, I found that I can't open the NIC. First confirming that the NIC configuration is no problem, and has not found a hand mistaken. The following error message appe...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top