今天很多国外的网站不能访问,而且新浪和网易的科技频道也因为不明原因不能访问了,有猜测说是被河蟹了..所以找了下访问国外网站的方法,当然同时加密了firefox到远程服务器之间的连接
参考资料:
http://thinkhole.org/wp/2006/05/10/howto-secure-firefox-and-im-with-putty/
原理: 浏览器通过 SSH通道发送消息到远程服务器,然后远程服务器再访问目标内容
配置过程:
在SSH登录工具Putty的登录设置中配置tunnel,目标设置为Dynamic,添加一个端口7070,再按Add,一个动态转发端口就实现了:
然后用相应帐号ssh登录后:除了登录的终端窗口意外,本地的7070连服务器的22端口之间就有了一个SSH加密的转发通道了。注意设置以后别忘了保存一下
更简单方便的方法是:
使用 putty的后台命令行程序plink
plink -N username@remote.ssh.server -D 127.0.0.1:7070
其中 -N 表示不需要shell
username@remote.ssh.server 换成你ssh帐户名和主机域名或者地址
或者替换成 -load sessionname 也可以,用hostmonster上的帐号试了一下,真的很快
如果是用Linux的朋友那就更简单了:
假设你的用户名是testing,服务器是andystar.net那么你只需要在终端下输入
ssh -qTfnN -D 7070 testing@andystar.net
解释一下:
-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.
7070是本地的端口,可以自己来决定,后面和Windows一样配下使用sock5代理就好了
使用上面方法的前提是相应的主机支持SSH Forwarding:
如果:/etc/ssh/sshd_config 中是这样的话那就不行了
…..
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
…..
不过默认情况下都是打开的,至少现在为止都是这样


Linode-很不错的VPS