一提到代理第一个想到的是squid,其实啊,有更加方便的方法 ,我使用linux,常常要用远程的服务器来打开一些东西.对方只要有ssh服务,就能做代理,非常方便.

方法很容易,在终端窗口输入:
ssh -qTfnN -D 1394 用户名@远程ssh主机

ssh -qTfnN -D1394 remotehost

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.

, , , , ,

引用地址:http://www.php-oa.com/2007/12/23/ssh-pory.html

要说点啥就在这吧