【发布时间】:2012-10-21 17:08:33
【问题描述】:
我正在尝试在 OSX 中获得对 curl 的 SFTP 支持。我通过
安装了 curl$ brew install curl --with-ssh
我还将自制版本通过符号链接到 /usr/bin
$ sudo ln -s /usr/local/bin/curl /usr/bin/curl
但我仍然得到一个
curl: (1) Protocol sftp not supported or disabled in libcurl
使用时
$ curl sftp://some.host.com/path/to/file
我的努力与真棒 git-ftp https://github.com/resmo/git-ftp/issues/146 的问题有关
我做错了什么?
【问题讨论】:
-
简短说明:现在看来您需要: brew install curl --with-libssh2
-
@DerWOK 你是这里真正的 MVP,这比答案更好。
-
截至 2018 年 8 月 brew install curl --with-ssh 自动将其翻译为 --with-libssh2。
标签: macos curl ssh sftp homebrew