On Thu, 13 Dec 2012, Mark Rogers wrote:
Anyone here played with Android app development? ... "All" it needs to do is create a secure connection (SSH) to an existing server using a pre-shared key, then tunnel a connection through it to a web server, displaying the web content in the app.
[Dan questioned the need to write an app..]
In this case yes: it needs to be something that a "normal person" can install (albeit side-loaded).
It's certainly possible in an app; there are several apps that act as proxys to send all web traffic through a secure tunnel (to defeat the Great Firewall of China etc) which do something pretty close to what I need. The problem is any time I search for keywords like "Android ssh tunnel" I get pages of hits for that, not examples on what I actually need.
I think I just need to re-install the tools and give it a go, and see where I get stuck.
Mark
A brief search for 'Android ssh VPN app' turns up this how-to guide, which describes the setup of SSHTunnel - you can get all the source for that as a starting point from Google code:
http://www.howtogeek.com/121698/how-to-route-all-your-android-traffic-throug... https://code.google.com/p/sshtunnel/
Shouldn't be far from there to a pre-configured app for your client(s)..
Phil.
On 17/12/12 09:50, Phil Ashby wrote:
A brief search for 'Android ssh VPN app' turns up this how-to guide, which describes the setup of SSHTunnel
Yeah, that's what I found when I Googled.
I also subsequently found http://www.jcraft.com/jsch/
.. which looks like a good Java SSH library to start from, with examples (http://www.jcraft.com/jsch/examples/) which will help me too.
- you can get all the source for that as a starting point from Google code:
At this point I'm not sure whether I will be able to release my app under GPL so I need to be careful about copying from GPL code.
Even so, a lot of what I think SSHTunnel (and similar apps) is about is transparent proxying? Ie running in the background so that "normal" apps go via the tunnel transparently? That's a pretty major part of the functionality that I simply don't need, as my web browser would be embedded into the same app as the SSH tunnelling. All the same, if I wasn't concerned about the risk of copying code from a GPL project into a non-GPL one the sourece would probably make interesting reading.
Mark