打印

linux 利用SSH 翻墙

linux 利用SSH 翻墙

如果你有国外的SSH帐号,可以试试在ssh终端里面输入 ssh -qTfnN -D 7070 username@remote_server
然后在浏览器的代 理服务器中,socks代理中添加:localhost 7070,其他为空,这是即可访问国外网站了。

ssh  -qTfnN -D 7070 username@remote_server
All the added options are for a ssh  session that’s used for tunneling.
-q :- be very quite, we are  acting only as a tunnel.
-T :- Do not allocate a pseudo tty, we are  only acting a tunnel.
-f :- move the ssh process to background, as  we don’t want to interact with this ssh session directly.
-N :- Do  not execute remote command.
-n :- redirect standard input to  /dev/null.
In addition on a slow line you can gain performance by  enabling compression with the -C option.
Licess,专于VPS,精于VPS美国VPS推荐
代购VPS、域名、服务器,代维 QQ:503228080 旺旺:lzhenbao
淘宝网店:http://shop63846532.taobao.com/ 拍拍店:http://503228080.paipai.com/
本联系方式仅提供代购及相关付费服务,lnmp相关问题请直接发帖。

TOP