bluehost 将SSH变成sock5代理,bitvise>plink

来源:http://www.trackself.com/archives/18.html

先说必行的方法然后再说为何有些网上或者网友总说不行,其实只要有SSH,就能变为代理了,只是没试多几次。提一下,bitvise法要比plink优无数倍,所以先说plink了
1.申请bluehost的SSH,这个没什么好说的,买了bluehost的服务后找到SSH图标,按说明一步步来就行。例如我拿到了账号:AAA,密码BBB.
2.下载plink.exe到C盘根目录下(随便你下到什么地方),找putty的官网下载,putty是图形版,plink是核心命令行版,没本质区 别。http://putty.very.rulez.org/download.html 。 用plink的原因是,putty太麻烦了,要点无数次鼠标。
3.过行命令行(开始->运行->cmd), 用CD命令定位到plink的目录然后运行:plink -ssh -2 -D 1080 AAA@trackself.com回车,然后输入密码BBB。OK,大功告成。不要关闭这个命令行窗口,让它一直掠着就行(如果觉得碍眼,可注册为服务后台运行,超出本文了)。解析:-D是指使用代理模式,1080是本机端品你可以改为其它没被占用的端口。后面就是用户名和服务器地址了
4.用FIREFOX浏览器(建议你不要试IE,IE是什么问题都有可能出现的),或者sockscap v2去验证这个代理吧。FIREFOX浏览器->工具-选项-高级-网络-sock5代理,填入127.0.0.1 1080就可以了。
5.选看。安装firefox插件autoproxy,这个插件很爽的,有一大堆网址列表,需要代理的时候才会切换到代理模式。注意了,如果装了这个插件,不仅第4点要完成,装完autoproxy后也要配置这个插件的代理的,同样的设置。

OK 可以去享受 youtube了

我成功将SSH变成代理也是经过好几次失败的。我一开始并不是用plink而是用putty,试了好几次,虽然能连上SSH,但代理不成功,我猜是网上关于putty的教程有问题。也试过用什么mytunnal 等好几个软件了。最后发现,原来plink如此简洁啊。
记住了,不是bluehost关闭了SSH的代理或者tunnel功能,而是你没耐心。试多几次就行了,开了SSH,一定能变代理。

翻 墙新手们往往遇到这样的问题:我明明已经设置了socks代理为127.0.0.1:xxxx,为什么还是上不去youtube?这时经验丰富的翻墙高手 就会告诉你:firefox需要设置network.proxy.socks_remote_dns为true,也就是远程解析域名。这是怎样一回事呢? 为什么要远程解析?这就涉及到了GFW的DNS污染技术。

我也不会怎么设network.proxy.socks_remote_dns为true,所以我装了一个插件叫autoproxy,应该是自动设置 的

另一个当然就是速度了,这也是我后来才发现的,用了好久的plink了呀,国内下载速度只有30-50KB/s的下载速度,但换了一个软件叫做bitvise(官网http://www.bitvise.com/之后,速度直接就差不多接近我的宽带网速了(夸张了,但一定在150KB/s以上),而且方便多了,上面也集成了一堆软件,好东西啊。目前我还不知道为什么不同的软件会有不同的速度, 可能是与处理方式有关。但linux下的openssh软件据世界人民说是最快的,但怎么说了,150KB/s已经可以在youtube上流畅的看 360P了,720P也勉强了,关键这时是完全不影响我的网站的,我这时做过保存文章,浏览站点页面,评论(在下载一个20MB大小的youtube视频 时做的测试)。目前应该是openssh>bitvise>plink.

又发现了bitvise的另一个好处了,稳定 啊,plink的命令行,只要你离开一段时间不用,是会自动退出的,但bitvise不会,而且bitvise还会将图标隐起来在QQ旁,真的很不错。一 开始我以为bitvise要注册的,现在发现,原来只是开始的时候偶尔切向about的地方,它目前对个人还是免费的。

有空制作一个视频吧我

Everybody knows bluehost ssh could change into sock5 proxy , but know means that they success.
A lot of people complain that bluehost may have block their ssh tunnel function making them unable to change ssh into sock5 , but the truth is that these people won't try a second way.
1.apply bluehost ssh, there is nothing i could help , just follow the instruction in cpanel . If success , you could get a account AAA password BBB.
2.download plink.exe from it's offical website http://putty.very.rulez.org/download.html to "c:\" or whatever
3.open command line (start->run->cmd), change root to plink folder then type : plink -ssh -2 -D 1080 AAA@trackself.com and then type the password. If login success , remain this command like window open. "-D" means that you're trying to change ssh to a proxy and 1080 is a port of your local machine which you can change it to any number. AAA is the acount username and trackeself.com is domain of yours.
4.using Firefox to test sock5 proxy . firefox-tool-option-high-net-sock5
5.optional step:install firefox plugin "autoproxy" , it contains a list of domain which ban access so you could visit them using proxy and visit other sites without proxy .

Before this success trying , i failed a few times too. Firstly i try putty and then mytunnal , all failed. Then i found plink , the world is just so clean and easy , one shoot and i am in. So remember , not bluehost suck but you're without patient.


没有评论: