Git
git config --global https.proxy socks5://${ip}:${port}
git config --global http.proxy socks5://${ip}:${port}
git config --global --unset http.proxy
git config --global --unset https.proxy
pip
pip install -r requirements.txt -i --proxy=http://${ip}:${port}
pip install -r requirements.txt -i https://pypi.douban.com/simple --trusted-host=pypi.douban.com
apt
sed -i "s/archive.ubuntu./mirrors.aliyun./g" /etc/apt/sources.list
sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list
sed -i "s/security.debian.org/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list
sed -i "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.lista
ssh
ssh -o "ProxyCommand=nc -X 5 -x ${ip}:${port} %h %p" ${user}@${server}
docker
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/9a2217e64a33363c08c7aeeacad6ee53.png#pic_center)