I am trying to get SFTP support for curl in OSX. I installed curl via
$ brew install curl --with-ssh
and I also symlinked the homebrew version to the /usr/bin via
$ sudo ln -s /usr/local/bin/curl /usr/bin/curl
But I am still getting a
curl: (1) Protocol sftp not supported or disabled in libcurl
when using
$ curl sftp://some.host.com/path/to/file
My endeavor is connected to an issue for the awesome git-ftp https://github.com/resmo/git-ftp/issues/146
What am I doing wrong?
run 'curl -V' and see if SFTP is listed as a supported protocol.
If it isn't, curl needs to be rebuilt with libssh2 to get the support built-in.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With