不安静的书桌 从今天起,用键盘忠实记录书桌外的生活

17五/097

如何在Ubuntu下利用SSH隧道翻墙

在Ubuntu9.04(我的教程果然跳票了)下已经有一段时间了,如何翻墙成了一个很重要的的问题(Windows下如何翻墙)。而且前一段在GoogleAnalysis上发现竟然有人通过搜索Ubuntu翻墙。来到我的Blog。毋庸置疑他没有在我这里找到答案。

通过一段时间的Google,终于找到了如何在Ubuntu下利用SSH翻墙。Via

假设你的用户名为Tomyiyun (没有SSH帐号?)服务器为proxy.liuhanyu.com那么你只需要在终端下输入

ssh -qTfnN -D 7070 tomyiyun@proxy.liuhanyu.com

(更新:根据我的尝试,这里可能需要管理员权限。即如果你在Ubuntu系统下,你应在命令前加上“sudo”)

命令注释:

-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.

(更新:如果希望方便,你可以像我一样在面板上增加一个启动器,名称随意,命令类似于 sudo ssh -qTfnN -D 7070 tomyiyun@proxy.liuhanyu.com 。)

后面的就跟在Windows下一样了…………

看我以前的文章吧,不再重复了

   

无觅相关文章插件,快速提升流量