不设置代理10kb/s不到....,设置后,500kb/s左右跑~

开shadowsocks,代理127.0.0.1:1080

编写一个脚本 /YOUR PATH/gitproxy.sh

#!/bin/sh 
nc -X 5 -x 127.0.0.1:1080 "$@"

 

然后修改~/.gitconfig

添加git://全局代理:

[core]
gitproxy=/YOUR PATH/gitproxy.sh

 

添加http(s)://全局代理:

[http]
proxy=socks5://127.0.0.1:1080

 

再修改/etc/ssh/ssh_config
添加ssh://全局代理

ProxyCommand nc -X 5 -x 127.0.0.1:1080 %h %p

 

这样ssh:// git:// http(s):// 三个都可以用shadowsocks的代理了

速度妥妥的。

相关文章:

  • 2021-11-21
  • 2022-12-23
  • 2021-09-11
  • 2021-07-31
  • 2022-12-23
  • 2021-12-15
  • 2021-06-29
  • 2021-07-20
猜你喜欢
  • 2021-05-21
  • 2021-09-05
  • 2021-07-05
  • 2022-01-20
  • 2022-01-21
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案