git socks proxy with ssh2

Rufus Cable at ThreeBytesFull posted a helpful writeup on using a SOCKS proxy for git access from behind a corporate firewall.

In my corporate environment, we don’t use OpenSSH, but rather Reflection for Secure IT, which is ssh2. The only change I had to make from his instructions was in the socks-ssh wrapper script—using the SocksServer config option instead of ProxyCommand:

# Filename: ~/bin/socks-ssh
# This script opens an SSH connection through a SOCKS server
ssh -o 'SocksServer' $@