使用SSH代理命令如下: ssh -qTfnN -D 7070 username@x.x.x.x
GIt设置代理
设置如下:
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
取消
git config --global --unset http.proxy
git config --global --unset https.proxy