ssh -D8081 localhost ssh -R8081:localhost:8081 some.remote.server http_proxy=socks5h://localhost:8081 git clone git@git.corp:foo/bar.git