【发布时间】:2016-03-16 12:44:15
【问题描述】:
我正在尝试使用 curl sftp 将文件上传到服务器。使用的 sftp 是通过基于密钥的身份验证。这是命令。
sudo curl -v -u nodebsecadmin: --key /data/ssh/externalLogUserKey --pubkey /data/ssh/externalLogUserKey.pub --ftp-create-dirs -k -T extlog_test.txt sftp:"http://www.iprc.lucent.com/~prcm/junk/extlog_test.txt"
我收到了错误:
curl: (1) Protocol http not supported or disabled in libcurl
我尝试使用单引号以及其他论坛中的建议,但它没有用。
当前 curl 版本支持 SFTP。
eCCM-nodebsecadmin-/store> curl -V
curl 7.30.0 (powerpc-wrs-linux-gnu) libcurl/7.30.0 OpenSSL/1.0.0 zlib/1.2.5 libidn/0.6.5 libssh2/1.4.3
Protocols: file ftp ftps scp sftp
Features: IDN SSL libz
这可能是什么问题?
【问题讨论】: