解决github拉取推送超时的解决方案发布于 2个月前466 热度1 评论深山夕照0 粉丝 52 篇博客关注打赏

office365打不开 📅 2025-12-22 18:21:33 👤 admin 👁️ 2490 ❤️ 609
解决github拉取推送超时的解决方案发布于 2个月前466 热度1 评论深山夕照0 粉丝 52 篇博客关注打赏

这两天好像 github 拉取推送都超时了~

方案一.在 ~/.ssh/config 中添加

Host github.com

User git

HostName github.com

ProxyJump proxyserver

Host proxyserver

User root

HostName your_server_ip

IdentityFile xxx

其中 proxyserver 是你 hk 或海外可以直连 github 的服务器.

方案二. 直接使用已有代理更加简单方便

Host github.com

User git

HostName github.com

ProxyCommand ncat --proxy-type socks5 --proxy 127.0.0.1:9999 %h %p

提示没有ncat的话需要先安装!

相关推荐

雷朋车蜡的效果怎么样
中国的365体育投注

雷朋车蜡的效果怎么样

📅 10-21 👁️ 561
蒸馒头冷水蒸还是热水蒸?揭秘最佳蒸馒头方法,让馒头又软又香!
“金属味”是什么味?
www365bet娱乐场

“金属味”是什么味?

📅 10-03 👁️ 2228