Skip to content

Instantly share code, notes, and snippets.

@jgaiao
Forked from eric1234/install_git_ftp.sh
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save jgaiao/eacb1625b49d3d15b793 to your computer and use it in GitHub Desktop.

Select an option

Save jgaiao/eacb1625b49d3d15b793 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