Solutions to ssh connection failure while sftp connection failure

Source: Internet
Author: User
Tags filezilla
The solution for ssh connection and sftp connection failure is that FileZilla was used to log on to a remote server from yesterday. ssh login is OK because it is a server and cannot be moved. I checked a lot of information and finally solved the problem. First, check the system security log www.2cto.com [ro...
The solution for ssh connection and sftp connection failure is that FileZilla was used to log on to a remote server from yesterday. ssh login is OK because it is a server and cannot be moved. I checked a lot of information and finally solved the problem. First, check the system's security log www.2cto.com [root @ localhost sbin] # cat/var/log/secure | grep sftp display information: Nov 15 12:43:30 localhost sshd [22938]: error: subsystem: cannot stat/usr/libexec/openssh/sftp-server: No such file or directoryNov 15 12:43:30 localhost sshd [22938]: subsystem request for sftp failed, subsystem not foundNov 15 13:18:01 localhost sshd [25093]: subsystem request for sftp can be seen that there is no sftp-server directory Find the [root @ localhost sbin] # locate sftp-server/usr/local/libexec/openssh/sftp-serverlocate ftp-server, the directory is different from the one in the configuration file [root @ localhost sbin] # vi/etc/ssh/sshd_config modify the final sftp directory in the following configuration file # override default of no subsystemsSubsystem sftp/usr /local/libexec/openssh/sftp-serverreload the sshd [root @ localhost sbin] #/etc/init. d/sshd reload and try again. OK.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.