Closed. This question is off-topic. It is not currently accepting answers. Learn more
想改进这个问题吗?Update the question所以堆栈溢出的值小于aa>。
6年前关闭。
当我从SFTP站点下载文件时,我使用CURL命令从站点下载文件。但是我已经安装了curl,即使我遇到了不支持的协议错误,请在命令提示符中找到我使用的脚本。
操作系统版本
-sh-3.00$ uname -a
Linux S91819  2.6.9-89.35.1.ELsmp #1 SMP Tue Jan 4 22:29:01 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

-sh-3.00$ curl --version
curl 7.12.1 (x86_64-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

-sh-3.00$ curl -u xxx:yyy -O sftp://67.125.134.122/out_files/DATA.ZIP
curl: (1) Unsupported protocol: sftp

最佳答案

您的curl没有sftp支持:
the mailing list
SFTP支持只是添加到curl 7.16.1版本中
你必须安装一个更新的软件包,或者更好的是,你自己从源代码中构建它。GG包括版本:-)

09-05 01:41
查看更多