相关疑难解决方法(0)

如何在 cURL 中启用 SFTP 支持?

我已经安装了 curl-7.27.0,它工作正常。但是,当我运行时curl -V,我得到:

curl 7.21.6 (i686-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
Run Code Online (Sandbox Code Playgroud)

如何启用 SFTP 协议?

sftp curl

17
推荐指数
3
解决办法
3万
查看次数

libcurl 不支持或禁用 cURL sftp

我正在尝试使用带有 cURL 的 sftp 将文件上传到我的网络服务器,如果我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
Run Code Online (Sandbox Code Playgroud)

但是,如果我尝试使用 sftp:// 作为curlURL将文件上传到我的服务器,则会在将-v选项添加到 curl 命令后得到以下输出:

* Protocol sftp not supported or disabled in libcurl
* Closing connection -1
curl: (1) Protocol sftp not supported or disabled in libcurl
Run Code Online (Sandbox Code Playgroud)

要使用 SFTP 协议安装 cURL,我在这里使用了这些说明。

server ftp sftp curl 16.04

7
推荐指数
0
解决办法
8192
查看次数

卷曲:符号查找错误:卷曲:未定义的符号:curl_url_cleanup

当我输入时,curl -v我收到此错误:

curl: symbol lookup error: curl: undefined symbol: curl_url_cleanup
Run Code Online (Sandbox Code Playgroud)

我删除了curl并重新安装了它,但出现了同样的错误。

curl 18.04

4
推荐指数
1
解决办法
4576
查看次数

标签 统计

curl ×3

sftp ×2

16.04 ×1

18.04 ×1

ftp ×1

server ×1