FileZilla这种ftp客户端通过sftp的方式无法登陆,但winscp可以。
前几天好没有问题,查看sshd_config下面显示的是:
# override default of no subsystems Subsystem sftp /usr/libexec/openssh/sftp-server
但是查找sftp-server是在这下面的
/usr/local/libexec/libexec/openssh/sftp-server
跟这个配置的路径有关系吗?
修改之后重启sshd有没有可能造成ssh也连接不上的情况?
远程服务器连接不上就麻烦了。
不敢轻举妄动。。
迷茫2017-04-17 11:07:01
Winscp works, it means there is no problem with your server, then it is a problem with FileZilla, don’t use FileZilla, use something else
黄舟2017-04-17 11:07:01
How is your SSH server installed? Did you install it directly from the software source or compiled and installed it yourself?
If you compiled and installed it yourself and did not specify the installation path when compiling, then SSH will be installed in the /usr/local directory by default, so the sftp-server you find is under /usr/local
However, although the installation path was not specified during compilation, it seems that the path in the configuration file is still the default, so you need to modify the configuration file and change it to the path under /usr/local, which is what you found. path.
As for whether the connection will be lost after restarting after modification, as far as I know, restarting SSH in Debian will not interrupt the current connection. You only need to restart and then open a terminal to try to connect.
If you are still worried, you can install a telnet first, so that even if SSH dies, you can still go up through telnet. However, please note that when connecting via telnet, all data (including passwords) are transmitted in clear text. Please set a temporary password in advance.