先看图
再google
巴拉巴拉 阿巴阿巴 你可能会看到很多取消代理的答案 诸如:
1. 取消git proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
2. 取消env proxy
unset http_proxy
unset https_proxy
一顿操作,然并卵。ping github ip 也没问题 到底是啥问题呢!
看这里!
有可能是你的ssh config 配置了失效的代理导致的。
vi ~/.ssh/config
是否有proxyCommand 等配置,删掉这个配置。
然后你就可以通过ssh连接github了。
加餐
有的同学可能修改了github dns hosts,会遇到这种warning
这是因为添加新的ssh key 和konwnhosts中配置的不一样
vi ~/.ssh/konwn_hosts
删掉旧的ssh key就可以啦
希望可以帮到大家。
|参考: