sftp为ssh的一个子集
可参考如下:
http://blog.csdn.net/xinxin19881112/article/details/46831311
不同之处:
/data/sftp/%u中
data为 root root 755
sftp为root root 755
%u位root usergrp(usergrp为sftp用户所属组)
upload为user usergrp 755
错误信息:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Couldn't read packet: Connection reset by peer
解决方案:启用密码访问。修改/etc/ssh/sshd_config后重启
PasswordAuthentication yes