ssh 克隆GitHub速度慢?一招解决

在~/.ssh/config 增加 ProxyCommand nc -X 5 -x 127.0.0.1:7890 %h %p,将代理设置到你本地的代理端口即可

# github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
ProxyCommand nc -X 5 -x 127.0.0.1:7890 %h %p
posted @ 2026-08-12 13:42  KURO、Liang  阅读(10)  评论(0)    收藏  举报