git clone git@ 代理

168 阅读1分钟

git clone git@github.com 拉取不到啊啊啊啊 啊啊 啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊

cat http.rc
export https_proxy=http://127.0.0.1:7890;
export http_proxy=http://127.0.0.1:7890;



▶ cat ~/.ssh/config
# 必须是 github.com
Host github.com
   HostName github.com
   User git
   # 走 HTTP 代理
   ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=7890
   # 走 socks5 
   # ProxyCommand nc -v -x 127.0.0.1:1080 %h %p