Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,802,901 Members 39,323 Now Online
XDA Developers Android and Mobile Development Forum

SSH reverse tunneling on Android

Tip us?
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Feb 2009
Default SSH reverse tunneling on Android

How to get access to Android (3G connection, no external IP) from the Internet?
If I set up a reverse SSH tunnel to port 22 of Android device:
ssh -f -NT -R 1234:localhost:22
it works fine and I have access to the device through
But if I set up the reverse tunnel to another port:
ssh -f -NT -R 4321:localhost:8080
it doesn't work

Probably this requires an additional tweak on the SSH server


#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server

But this file is read only. How to change it? Is it a right way? Maybe there is an app to set up a reverse ssh tunnels?
bangkokguy's Avatar
Thanks Meter 6
Posts: 46
Join Date: Nov 2010
Location: Budapest
What if the service provider does some port filtering?

---------- Post added at 02:48 PM ---------- Previous post was at 02:39 PM ----------

By the way, check this:

HTC Desire rooted S-OFF
NS rooted - Slim Bean

SGS3 rooted - self adjusted stock rom
"Historically I've had a “love-hate” relationship with Apple. They love themselves and I hate them."
- Jeremy Allison
reverse ssh tunnel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes