ssh隧道实现代理上网
07 June 2018
ssh隧道实现代理上网
本地代理
ssh -N -D 127.0.0.1:端口 用户名@服务器
比如:
ssh -N -D 127.0.0.1:3128 admin@xxxxxx.com
chrome配置
Terminer设置代理
参考: https://gist.github.com/fearblackcat/850c6e027d5a03017c44daaa6a7ffc30
export http_proxy="username:password@ip address:port number"
to your ~/.bash_profile
file
export http_proxy=192.168.1.10:8080
export HTTP_PROXY=192.168.1.10:8080
export https_proxy=192.168.1.10:8080
export HTTPS_PROXY=192.168.1.10:8080
export no_proxy=localhost,127.0.0.1,*.my.company.lan
为npm设置代理
npm config set proxy http://xxx.xxx.xxx.4:8080
npm config set https-proxy http://xxx.xxx.xxx.4:8080
npm config rm proxy
npm config rm https-proxy