tags: Bug in the project centos sftp
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
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...
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 ...
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...
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 error Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe&rdquo...
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: No response when viewing 3306 Solution Then view...
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...
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/...
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...