Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SFTP Support for curl on OSX

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?

like image 564
owzim Avatar asked Nov 01 '12 05:11

owzim


1 Answers

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.

like image 170
Daniel Stenberg Avatar answered Sep 17 '22 17:09

Daniel Stenberg