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?
 
rombad
Old
#1  
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 user@shell_server.com
it works fine and I have access to the device through user@shell_server.com:1234
But if I set up the reverse tunnel to another port:
ssh -f -NT -R 4321:localhost:8080 user@shell_server.com
it doesn't work

Probably this requires an additional tweak on the SSH server

/etc/ssh/sshd_config

#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
Old
#2  
bangkokguy's Avatar
Member
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: http://forum.xda-developers.com/show....php?t=2505710

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
Tags
reverse ssh tunnel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes