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:
[root@bogon ~]# 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:
[root@bogon ~]# locate sftp-server
/usr/libexec/openssh/sftp-server
/usr/share/man/man8/sftp-server.8.gz
Then open configuration:
[root@bogon ~]# 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.
[root@bogon ~]# /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:
[root@bogon ~]# 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:
[root@bogon ~]# locate sftp-server
/usr/libexec/openssh/sftp-server
/usr/share/man/man8/sftp-server.8.gz
Then open configuration:
[root@bogon ~]# 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.
[root@bogon ~]# /etc/init.d/sshd reload
Reconnect found OK.
Read More:
- Docker builds the pit that Seata stepped on. can not connect to services-server
- Error:join network can not connect to Zerotier service
- 2003 – Can‘t connect to MySQL server on ‘192.168.163.128‘(Unknown error )
- Workbench Could not connect the SSH Tunnel Authentication error
- ansible Q&A: Failed to connect to the host via ssh: ssh_exchange_identification and Authentication or per
- SFTP login error: fatal error: received unexpected end of file from SFTP server
- Can not start, can not find QT pligins “windows” problem after installing QT vs environment 2021-06-13
- Vs under the execution of OpenGL program can run successfully, but do not show things
- Gt Report Error ssh:connect to host github.com port 22
- The solution to the problem that the virtual machine and the host SSH can’t connect on vmvare
- MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect EC
- Android studio introduces code error, but it can run normally
- Error “/run/lvm/lvmetad.socket: connect failed: No such file or directory” – but not Grub related
- Linux configuration SFTP server
- Use of HQL query.list () is a null pointer exception, but the database can find out the result
- RTMP_Connect0, failed to connect socket. 110 (Connection timed out)
- KeyError: “Can‘t open attribute (can‘t locate attribute: ‘nrx‘)“
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- An error is reported when installing the package directly in pycharm, but it can be installed through the terminal. Error non zero exit code (2)
- VC + + compiler can not find the header file and rebuild failure