修改 ~/.ssh/config 文件(不存在则新建):
# 必须是 github.com
Host github.com
HostName github.com
User git
# 走 HTTP 代理
# ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=10809
# 走 socks5 代理(如 Shadowsocks)
# ProxyCommand connect -S 127.0.0.1:10808 %h %p