突然发现在** iTerm2** 下配置了 proxychains4,有部分链还是不会走代理运行。 比如:git git的http协议会走代理运行,但是git@的ssh链接不会走代理

需要修改如下: 终端运行

1
2
git config --global http.proxy 'socks5://127.0.0.1:1086'
git config --global https.proxy 'socks5://127.0.0.1:1086'

修改文件

1
2
Host github.com bitbucket.org
    ProxyCommand            nc -x 127.0.0.1:1086 %h %p