Android使用SSH隧道代理

2011年4月10日 | 分类: 手机翻墙 | 标签: ,

前言

问我要IPhone和BB的SSH翻墙教程的同学们对不起了,俺实在是写不出来BB和IP的SSH代理教程,原因很简单,么有这两个手机,没法折腾。

准备工作

1、不用说,Android手机一部,系统在1.6以上的应该都能用(我的配置是HTC Vision + CM 7 rc4)
2、VPS或者SSH一个,听说有一些国外免费空间有提供SSH,可以尝试用来翻墙。
3、SSH Tunnel (下载链接) 这个软件是免费滴

说明

俺这是小白教程,高手不要来砸场子,有问题欢迎联系 @hfcorriez

使用SSH Tunnel代理过程

1、安装好SSH Tunnel

那个叫安全隧道的就是

2、SSH设置

设置SSH主机地址,端口,用户名,密码

3、配置代理模式

推荐使用Sock5代理,可以浏览HTTPS的网站

4、设置需要代理的应用

点击为“应用设置代理”,可以进入该界面,选择需要代理的应用(如果手机root过,可以开启全局代理)

5、开启SSH Tunnel

需要代理的时候点击安全隧道开关即可(总觉得这个设计不是很合理)

连接成功后,会在通知栏弹出提示

6、尽情享受开放的网络世界吧

Twiiter客户端可以用了,oye

我为默认浏览器加了代理,直接上Twitter没什么问题

结束语

wifi切换到手机网络时候会掉线,自动恢复后无法使用,必须要重连,总之还不是很稳定。能再给力点么?

 

原文http://zhaogege.com/2011/04/android-use-ssh-tunnel.htm

  1. TGHYUJ
    2011年9月21日14:49

    联通定制机能用吗安全吗?
    iGFW

    • iGFW
      2011年9月21日15:00

      不清楚。
      不过如果你不是特别重要的人物也无所谓

  2. AS
    2011年5月15日19:39

    sshtunnel – Android SSH Tunnel App – Google Project Hosting
    https://code.google.com/p/sshtunnel/
    “SSH Tunnel for Android System
    SSHTunnel is a SSH tunnel app for Android System, based on Connectbot and Dropbear (Beta Branch). With this app and a configured server (typically configured with sshd and nginx / squid), you can easily browser internet through a SSH tunnel on your android devices.”
    “Notice
    If you want to set up your own VPS to work with this app, please install and configure HTTP PROXY on your VPS first (typically squid or nginx). To support HTTPS (SSL), you must configure your http proxy to allow CONNECT Method on 443 port
    Considering the poor performance of dynamic port forwarding on most android devices, we suggest you to use a transparent proxy set up in the SSH server and use local port forward to proxy data through SSH tunnel.
    To work with your private/public key, please store your key (only OpenSSH format, not putty) as the file /sdcard/sshtunnel/key
    IMPORTANT : This App uses a DNS Proxy to solve the DNS Pollution problem in China, which would try to fetch pre-defined HOSTS information from our web server. All these HOSTS files and source codes are open to public.
    安全隧道
    安全隧道是一款 Android 系统上的应用软件,配合相关服务,帮助您安全快速的访问互联网。
    请前往电子市场下载最新版,解决了与部分 SSH 服务商不兼容的情况(需在程序内选择“使用SOCKS代理”选项)。注意:在使用本地SOCKS代理情况下,电池耗电量将大大增加。
    使用 PublicKey 登录的用户,请先更新到 1.0.7 以上版本,并把你的 Key 保存成 /sdcard/sshtunnel/key 文件即可
    问题反馈:@sshtunnel_dev
    注意
    由于 Android 本身的生态环境过于复杂(各种非标准硬件,非官方 ROM、特殊优化程序),可能造成部分用户无法正常使用,请各位谅解。如果你无法正常使用,请务必依照模版提交 Issue,并附上你的手机信息(型号,ROM版本,是否ROOT,是否做过特殊优化)
    当然,还是建议大家尽量选择正规途径提供的 ROM,以减少不必要的麻烦。
    本 App 免费开源无广告,且不接受任何形式的捐赠。但如果你的手机能正常运行本 App,请前往电子市场为本 App 评个高分,谢谢各位的支持 ~ ~
    中文说明: 快速设置指南 | 虚拟主机用户指南 ”
    “Available in Android Market
    If you run into application problems
    Please, please send us relevant logcat dumps when you have a crash. Here’s how to get a logcat dump:
    1. Enable USB debugging. Go into Settings, Applications, Development, and enable the “USB debugging” option.
    2. Install the Android SDK. You’ll need a desktop tool called adb that will help you get error logs.
    3. Make sure your phone can connect. Follow the instructions here to make sure that adb can talk with your device:
    http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware
    3. Dump logcat data. From your desktop console, type ./adb -d logcat | grep -i SSHTunnel. Make sure it’s showing some data, then copy everything into a text file and attach to your bugreport here on this site. CAREFULLY read over the logs for any sensitive information BEFORE posting. You might need to Ctrl+C to quit adb once it stops printing data. ”
    Downloads – sshtunnel – Android SSH Tunnel App – Google Project Hosting
    https://code.google.com/p/sshtunnel/downloads/list
    Uploaded 4 days ago.

    • iGFW
      2011年5月15日20:00

      感谢支持,这个不错不过我以前发过了就不重发了

  3. 2011年4月30日13:05

    请教,我安装并显示“安全隧道连接成功”可还是翻不了,我已经选择了相应的程序

    • iGFW
      2011年4月30日14:20

      你在http://code.google.com/p/sshtunnel/downloads/list下载最新版,然后看http://madeye.me/2011/02/10/ssh-tunnel-on-the-android-application-puff-android-edition/或http://www.usesshblog.com/2011/03/android%E6%89%8B%E6%9C%BA%E9%80%9A%E8%BF%87%E4%BD%BF%E7%94%A8%E2%80%9C%E5%AE%89%E5%85%A8%E9%9A%A7%E9%81%93%E2%80%9D%E8%BD%AF%E4%BB%B6%E4%BD%BF%E7%94%A8ssh/再试试。

  4. 2011年4月12日14:40

    如何通过你给的那个链接下载呢,我点了以后点安装然后就没有反映了

    • iGFW
      2011年4月12日17:59

      您可以在http://code.google.com/p/sshtunnel/downloads/list?can=1处下载最新版试试。
      推荐前往Android电子市场下载最新版。有问题反馈给https://twitter.com/sshtunnel_dev

  5. sakai
    2011年4月10日22:57

    博主,我从黑市场下载了一个onevpn的破解版,经测试确实已激活。这是一款可以在安卓手机上一键连接VPN的软件,博主可以测试一下,并将它推广给更多的翻墙者 这是地址:http://u.115.com/file/f4e9fef755

    • iGFW
      2011年4月11日11:58

      感谢您对本博客的支持,安卓手机我没有不能测试,http://igfw.net/archives/2160这里说的那个xinkvpn貌似也能一键连接VPN,您能不能测试下,看看行不行。