Post Reply

SSH reverse tunneling on Android

28th January 2014, 12:06 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Feb 2009
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?
16th March 2014, 02:48 PM   |  #2  
bangkokguy's Avatar
Member
Flag Budapest
Thanks Meter: 6
 
46 posts
Join Date:Joined: Nov 2010
More
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
Post Reply Subscribe to Thread

Tags
reverse ssh tunnel
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes