Skip to content

Instantly share code, notes, and snippets.

@lizkes
Last active January 7, 2021 17:04
Show Gist options
  • Save lizkes/4f394aa826a6cee475282c0d907b2fd7 to your computer and use it in GitHub Desktop.
Save lizkes/4f394aa826a6cee475282c0d907b2fd7 to your computer and use it in GitHub Desktop.
windows下github ssh走代理

修改 ~/.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment