【问题标题】:MINGW Windows - curl 7.59.0 missing sftp libMINGW Windows - curl 7.59.0 缺少 sftp 库
【发布时间】:2018-10-24 23:52:17
【问题描述】:

我已经安装了新版本的msysgit和MINGW,但是不支持sftp?!你能帮我添加这个吗?

$ curl -V
curl 7.59.0 (x86_64-w64-mingw32) libcurl/7.59.0 OpenSSL/1.0.2o (WinSSL) 
zlib/1.2.11 libidn2/2.0.4 nghttp2/1.31.0
Release-Date: 2018-03-14
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 
pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS Debug IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL 
libz TLS-SRP HTTP2 HTTPS-proxy MultiSSL Metalink

当我尝试访问 sftp 时: fatal: Protocol 'sftp' not supported by curl, exiting...

【问题讨论】:

    标签: curl msysgit


    【解决方案1】:

    我找到了解决方案。我只是 download some other curl.exe 文件并将其替换为

    C:\Program Files\Git\mingw64\bin

    SFTP 工作,但随后出现另一个错误。

    fatal: Could not get last commit. Network down? Wrong URL? Use 'git ftp init' for the initial push., exiting...

    所以我使用 -v 选项运行: git ftp push -v

    错误是: curl: (51) SSL peer certificate or SSH remote key was not OK

    最后我跑了ssh-keyscan hostname.example.com >> ~/.ssh/known_hosts from here

    但这对我没有帮助,所以我只使用参数--insecure,现在效果很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-24
      • 2018-12-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多