Ubuntu libcurl中不支持或禁用cURL SFTP

Ubuntu libcurl中不支持或禁用cURL SFTP,ubuntu,curl,server,ftp,sftp,Ubuntu,Curl,Server,Ftp,Sftp,我试图使用sftp和cURL将文件上传到我的Web服务器,如果我在服务器上运行cURL-V,我会得到这个输出 curl 7.47.0 (i686-pc-linux-gnu) libcurl/7.47.0 zlib/1.2.8 libssh2/1.8.0 Protocols: dict file ftp gopher http imap pop3 rtsp scp sftp smtp telnet tftp Features: IPv6 Largefile libz UnixSockets 但是

我试图使用sftp和cURL将文件上传到我的Web服务器,如果我在服务器上运行
cURL-V
,我会得到这个输出

curl 7.47.0 (i686-pc-linux-gnu) libcurl/7.47.0 zlib/1.2.8 libssh2/1.8.0
Protocols: dict file ftp gopher http imap pop3 rtsp scp sftp smtp telnet tftp
Features: IPv6 Largefile libz UnixSockets
但是,如果我尝试使用sftp://为
curl
URL上传文件到我的服务器,我会在curl命令中添加
-v
选项后得到以下输出:

* Protocol sftp not supported or disabled in libcurl
* Closing connection -1
curl: (1) Protocol sftp not supported or disabled in libcurl
我尝试卸载并重新安装cURL,但没有成功。我还尝试重新启动我的服务器,但没有解决它。
我尝试在cURL版本7.47和7.57上安装sftp,但都不起作用

我怀疑您在该机器上安装了两个不同的cURL版本…@DanielStenberg,我使用cURL目录中的
make uninstall
卸载了我安装的cURL版本,然后我尝试了
curl-V
,但没有安装任何版本,我重新安装了curl,然后再试一次,在尝试上载文件时出现了相同的错误