赞
踩
ubuntu系统。与其他方式不同,我没有修改sftp的路径。
我遇到的问题是在sshd_config 中配置的
Subsystem sftp /usr/libexec/openssh/sftp-server
这个路径不存在,那么就安装一下这个就好了。
sudo apt-get install openssh-server
vim /etc/ssh/sshd_config
Subsystem sftp /usr/lib/openssh/sftp-server
-----Subsystem 前面有#号的话去掉。
3、重启服务
service sshd restart
4、若还不行,检查是否存在/usr/lib/openssh/sftp-server
这个文件
我这里是不存在的,那么重装一下ssh就行了,至于为什么不存在,我现在也没搞清楚。
sudo apt-get install openssh-server
安装中会出现如下字样,因为之前安装过,所以这次再装一次,我选的是1.
A new version (/tmp/fileZQLJFe) of configuration file /etc/ssh/sshd_config is available, but the version installed currently
has been locally modified.
1. install the package maintainer's version 5. show a 3-way difference between available versions
2. keep the local version currently installed 6. do a 3-way merge between available versions
3. show the differences between the versions 7. start a new shell to examine the situation
4. show a side-by-side difference between the versions
What do you want to do about modified configuration file sshd_config? 1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。