我已经安装了 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 协议?
当我尝试curl http://google.com它时,但是当我使用 https 时,它会出现此错误:
curl: (1) Protocol "https" not supported or disabled in libcurl
Run Code Online (Sandbox Code Playgroud)
我已经搜索了各种答案,但没有一个解释如何解决它?
我需要从 sftp 服务器下载文件。不幸的是,Ubuntu 中的 curl 版本
7.58.0-2ubuntu3.6 amd64
Run Code Online (Sandbox Code Playgroud)
不支持sftp。
我收到错误消息
Protocol "sftp" not supported or disabled in libcurl
Run Code Online (Sandbox Code Playgroud)
尝试下载文件时。因此,我想curl从源代码构建以允许 sftp。我如何做到这一点?