上传单个文件报错
sftp> put hahaha
Uploading hahaha to /hahaha
remote open("/hahaha"): Permission denied
上传目录报错
sftp> put -r firefox/
Uploading firefox/ to /firefox
Entering firefox/
Couldn't stat remote file: No such file or directory
原因
sftp 根目录没有写权限
解决方法
我的 sftp 根目录为 /usr/sftp,赋予其写权限
chmod +w /usr/sftp
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)