Unable to connect to SFTP. It throws following error :
subsystem request failed on channel 0
Couldn't read packet: Connection reset by peer
Getting error initiating the migration task in task log
[ERROR] Error downloading file: Channel closed.
Following errors are found in system log:
Apr 29 10:07:43 www sshd: Accepted password for username from ::ffff:22.214.171.124 port 22 ssh2
Apr 29 10:07:44 www sshd: subsystem request for sftp
Apr 29 10:07:44 www sshd: error: subsystem: cannot stat /usr/libexec/sftp-server: No such file or directory
Apr 29 10:07:44 www sshd: subsystem request for sftp failed, subsystem not found
Path to SFTP server in SSH daemon config is was not properly configured.
sftp-serveron the server
- Edit SSH configuration file
/etc/ssh/sshd_configand set path to sftp server in
# grep Subsystem /etc/ssh/sshd_config
Subsystem sftp /usr/libexec/openssh/sftp-server