Welcome Guest | RSS

乌班图

Wednesday, 2026-04-01, 10:00 PM
Main » 2010 » March » 29 » SSH设置——可翻墙-_-||||
11:14 AM
SSH设置——可翻墙-_-||||

命令格式如下:
ssh -qTfnN -D 7070 username@sshserver

例如:我们的SSH用户名是sshtest,sshserver IP 是96.9.137.71,命令就是 ssh -qTfnN -D 7070 ssh@96.9.137.71
回车后会输入密码,关闭shell窗口,ssh仍然会后台运行,一个基于SSH的本地代理即建立完毕。

设置浏览器的代理服务器(socket)IP及端口,并开启远程dns解析。

指令解释如下:
-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.

Views: 1841 | Added by: forestrex | Rating: 0.0/0
Total comments: 0
Name *:
Email *:
Code *: