Accessing a git repository via ssh behind a firewall
Using socat
and a .ssh/config
like this:
Host=foo.server.com
ProxyCommand=socat - PROXY:your.proxy.ip:%h:%p,proxyport=3128,proxyauth=user:pwd
You should be able to ssh
to foo.server.com
and
git clone ssh://foo.server.com/var/git/myrepo.git
is expected to work.
Can you get a normal ssh (command-line) session going? If so, git should also work.
When using ssh, git should pick up your configuration options in .ssh/config. If that is not enough, you can point the environment variable GIT_SSH at a modified version of ssh (or shell script wrapper).