1. Open a SSH proxy connection. The destination must have internet access.
ssh-D 8989 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" [email protected]
8989 is the port I will use to proxy the access.
git clone https://github.com/XXX --config 'http.proxy=socks5://127.0.0.1:8989'
To disable the proxy, run command:
git config --global --unset http.proxy