bitbucket加速

在.ssh/文件夹下添加一个config文件,内容如下:

  • macos/ubuntu
1
2
3
Host bitbucket.org
User git
ProxyCommand nc -x localhost:1080 %h %p
  • centos7
1
2
3
Host bitbucket.org
User git
ProxyCommand ssh root@ip nc %h %p
  • windows
1
2
3
Host bitbucket.org
User git
ProxyCommand connect -S localhost:1080 %h %p

其中需要修改1080端口为自己的代理端口