Skip to content

Instantly share code, notes, and snippets.

@juliolvfilho
Forked from tr4nk/curl-with-sftp-https.md
Last active September 11, 2019 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliolvfilho/1c63014ed1bf8b0e724ed437c3eacc68 to your computer and use it in GitHub Desktop.
Save juliolvfilho/1c63014ed1bf8b0e724ed437c3eacc68 to your computer and use it in GitHub Desktop.
Install curl with sftp and https support on Ubuntu

as root...

  • Download latest curl:
cd /opt
wget http://curl.haxx.se/download/curl-x.x.x.tar.gz
  • Manual install curl:
tar -xvzf curl-x.x.x.tar.gz
rm curl-x.x.x.tar.gz
apt install libssh2-1-dev libssl-dev
cd curl-x.x.x/
./configure --with-ssl --with-libssh2
make
make install
  • Test installation:
curl -V | grep sftp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment