Google_cloud Centos7搭建科学上网

先切换成 root 账户,使用SSH客户端登录

  • 进入谷歌云实例面板,打开 SSH 窗口
  • 切换到root角色
1
sudo -i
  • 修改SSH配置文件/etc/ssh/sshd_config
1
2
3
4
5
6
7
8
vi /etc/ssh/sshd_config


# Authentication:
PermitRootLogin yes //默认为no,需要开启root用户访问改为yes

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes //默认为no,改为yes开启密码登陆
  • 给root用户设置密码
1
passwd root
  • 重启SSH服务使修改生效
1
/etc/init.d/ssh restart

使用一键搭建脚本

1
2
3
wget -N https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh
chmod +x ssr.sh
bash ssr.sh

bbr加速

1
2
3
4
yum -y install wget
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
chmod +x bbr.sh
./bbr.sh

会提示重启,重启完就可以快乐的玩耍了!