把ssh做成sock代理的详细方法
- 十一月 8th, 2008
近几天为这事困扰了一阵子,终于找到资料,完美解决了这个问题。
假设你的ssh账号为username,密码为password,地址是server。
1.客户机为linux,很好办,打开终端:
#ssh -D 1080 Username@Server
然后在浏览器或相关软件配置socks5,地址为127.0.0.1,端口为1080即可,当然这里端口可以是随意没有被占用的。
2.客户机为windows,需要辅助的putty和plink。打开命令行到两个软件的目录:
plink -N Username@Server -pw Password -D 127.0.0.1:1080
请将Username Server Password三处改为您自己登陆服务器的用户名、服务器地址和密码。并保持该cmd窗口处于打开状态。然后配置浏览器或其他应用的socks5即可,地址127.0.0.1,端口1080。putty和plink下载地址
干什么用就不细说了,上网必备的瑞士军刀(良民一,需要穿墙的内容俺是不看的。体谅go.v)。


To be a upright human being is to procure a make of openness to the world, an cleverness to trust unsure things beyond your own control, that can take you to be shattered in uncommonly extreme circumstances for which you were not to blame. That says something uncommonly outstanding with the condition of the righteous passion: that it is based on a conviction in the fitful and on a willingness to be exposed; it’s based on being more like a spy than like a prize, something rather tenuous, but whose acutely particular beauty is inseparable from that fragility.