-
Install corkscrew
-
Setup corkscrew auth file
echo your_proxy_username:your_proxy_password > ~/.corkscrew_auth -
Add to
~/.ssh/configHost gitproxy User git Hostname ssh.github.com Port 443 ProxyCommand /usr/local/bin/corkscrew dnzwgpx2 80 %h %p ~/.corkscrew_auth IdentityFile ~/.ssh/id_rsa -
Add to
.git/configfor your git repo[remote "originpx"] url = ssh://gitproxy/your_username/your_repo.git fetch = +refs/heads/*:refs/remotes/origin/* -
You should be able to now do this:
git clone git@gitproxy:your_username/your_repo.git
Thanks to http://www.wetware.co.nz/2010/03/cant-access-github-behind-proxy-or-firewall/ for the inspiration
Glen always saving the day