阿里云无法连接Github的问题

in github •  7 years ago 

在阿里云上安装EOS Dawn 3.0,碰到连不上github的问题

把解决方案在这里记录一下吧

首先找到一个靠谱的shadowsocks服务,或者购买一个

其次在阿里云上安装shadowsocks客户端

安装shadowsocks
sudo pip install shadowsocks

接着创建一个文件来存放配置
vim ss.json

配置文件内容如下

{
"server":"1.1.1.1",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"your passwd",
"timeout":300,
"method":"aes-256-cfb"
}

把你服务器中的对应参数填入就好了

启动连接

nohup sslocal -c ss.json &

##最后给git客户端配代理

在git config全局配置代理端口

git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080

取消git config配置:

git config --global http.proxy ""
git config --global https.proxy ""

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

靠谱的shadowsock服务,推荐这个 https://www.boslife.net/