An error occurred when switching from the command line to SFTP using Xshell:
sftp subsystem request is rejected.
please make sure that sftp subsystem is properly installed in ssh server.
Here’s why:
[[email protected] ~]# tail /var/log/secure
Feb 23 16:29:48 localhost sshd[2989]: subsystem request for sftp
Feb 23 16:29:48 localhost sshd[2989]: subsystem request for sftp failed, subsystem not found
It can be seen that there is no directory for FTP – Server
Let’s look for the path address of FTP – Server:
[[email protected] ~]# locate sftp-server
/usr/libexec/openssh/sftp-server
/usr/share/man/man8/sftp-server.8.gz
Then open configuration:
[[email protected] ~]# vi /etc/ssh/sshd_config
will
# # override the default of no subsystems
Subsystem SFTP/usr/libexec/openssh/SFTP server. –
replace
# override the default of no subsystems
Subsystem SFTP/usr/libexec/openssh/SFTP server. –
Ok, load SSHD again.
[[email protected] ~]# /etc/init.d/sshd reload
Reconnect found OK.
sftp subsystem request is rejected.
please make sure that sftp subsystem is properly installed in ssh server.
Here’s why:
[[email protected] ~]# tail /var/log/secure
Feb 23 16:29:48 localhost sshd[2989]: subsystem request for sftp
Feb 23 16:29:48 localhost sshd[2989]: subsystem request for sftp failed, subsystem not found
It can be seen that there is no directory for FTP – Server
Let’s look for the path address of FTP – Server:
[[email protected] ~]# locate sftp-server
/usr/libexec/openssh/sftp-server
/usr/share/man/man8/sftp-server.8.gz
Then open configuration:
[[email protected] ~]# vi /etc/ssh/sshd_config
will
# # override the default of no subsystems
Subsystem SFTP/usr/libexec/openssh/SFTP server. –
replace
# override the default of no subsystems
Subsystem SFTP/usr/libexec/openssh/SFTP server. –
Ok, load SSHD again.
[[email protected] ~]# /etc/init.d/sshd reload
Reconnect found OK.
Read More:
- Linux configuration SFTP server
- subsystem request failed on channel 0 Couldn’t read packet: Connection reset by peer
- Winscp failed to upload the file to the server, indicating permission denied with return code 3
- SFTP login error: fatal error: received unexpected end of file from SFTP server
- Putty remote login VMware virtual machine Linux
- Windows subsystem Ubuntu 18.04 solves SSH problem
- Ubuntu starts or restarts SSH service
- Ubuntu 20.04 builds nginx 1.18.0 and MAC file transfer / download to server
- Using jgit to report errors: the solution of algorithm negotiation failure
- failed: Error during WebSocket handshake: Unexpected response code: 400
- Putty logs in and prompts no supported authentication methods available
- Centos8 solves SSH secure shell error algorithmic negotiation failures
- SSH write failed broken pipe
- Invalid host header error in Vue using peanut shell agent
- ssh port forwarding
- Putty prompt network error: software caused connection abort solution
- SSH Remote ulimit does not work
- Failed to restart ssh.service: Unit not found.
- CHECK_NRPE: Error – Could not complete SSL handshake.
- Solution of server startup timeout in eclipse