Skip to content

Instantly share code, notes, and snippets.

@eric1234
Last active February 24, 2017 16:43
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eric1234/7814617 to your computer and use it in GitHub Desktop.
Save eric1234/7814617 to your computer and use it in GitHub Desktop.
Install git-ftp on Ubuntu with sftp support and git ftp fetch support
# Rebuild curl with sftp support
apt-get install -y build-essential debhelper libssh2-1-dev
apt-get source curl
apt-get build-dep -y curl
cd curl-*
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage
cd ..
dpkg -i curl*.deb libcurl3-nss*.deb libcurl4-doc*.deb libcurl4-openssl*.deb libcurl3_*.deb
# Use "drench" version which support `git ftp fetch`
cd /usr/local/src
git clone -b feature/lftp https://github.com/drench/git-ftp.git
cd git-ftp
make install
apt-get install -y lftp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment