Using ssh as a SOCKS server

Posted on Fri 10 September 2010 in 我用(IT)

use ssh as a SOCKS server:

ssh -D port host
windows平台下的ssh命令行可以在以下地址下载: http://sshwindows.sourceforge.net/download/

解释一下-D参数:

-D [bind_address:]port Specifies a local “dynamic” application-level port forwarding. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is forwarded over the secure channel, and the application protocol is then used to determine where to connect to from the remote machine. Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh will act as a SOCKS server. Only root can forward privileged ports. Dynamic port forwardings can also be specified in the configura‐ tion file.
另外新阳推荐的chrome插件Proxy Switchy,非常不错哦。