开发者

Proxy tether android >> Firefox works, ssh/wget/apt do not. Is this a tcp/http issue?

I am able to get a manual proxy set up in firefox using android-sdk adb forward tcp:8080 tcp:8080 to the proxoid app, but for some reason none of my command line utilities (wget,ssh,apt) recognize this manual proxy.

For instance, $bash: ssh username@host.org returns >>> ssh: Could not resolve hostname host.org: Name or service not known

I tried "manual change proxy settings" in the kde proxy module to run over localhost:8080, but still commands like wget, ssh, etc., do not recognize the manual proxy. The ssh error is the same, but I can still browse the internet with firefox no problem!

Then I tried creating an .ssh/config with Host * and ProxyCommand corkscrew localhost 8080 %h %p as suggested here. Still no luck.

Any KDE guru's know what I might be doing wrong? Is this at all related to the fact that I am invoking a tcp connection between my laptop and my android (over adb) while corkscrew and KDE Proxy normally operate over http connections to r开发者_如何学Cemote proxies?


The error message indicates a problem with DNS. You need to get DNS working on the device too, or use IP addresses instead of host names.


  • Proxoid is an HTTP proxy, not an SSH proxy. So, the only apps that will work correctly are those that speak HTTP.
  • To get command-line programs (like wget or apt) to work correctly, try setting the "http_proxy" environment variable, thus: $ export http_proxy=localhost:8080.


My desperate solution later that night (fwiw): root your phone. Tetherbot handles both socks and ssh proxies; it worked wonders for me, although it is a little unstable (needed to reboot multiple times, root a second time, etc).

Based on the google code page for proxoid, gnome users can get this a full proxy pretty easily -- I have not had any such luck with kde. If anyone out there gets this working with kde, ping me and I will accept your answer!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜