What ssh command would I use to set up "backwards listening"

Posted by Nathan on Super User See other posts from Super User or by Nathan
Published on 2012-03-07T18:02:37Z Indexed on 2012/04/08 5:34 UTC
Read the original article Hit count: 437

Filed under:
|
|
|

Machine A is behind a firewall. I have physical access to it, but I want to log into it remotely, and I do not have access to the firewall settings.

Machine B is remote, and not behind any firewall. (It's my linode)

Machine C is the mobile device I'm going to attempt to ssh into A from.

Is there an ssh command that I can run from machine A that connects to machine B and stays open, that will allow me to log into A from C, via B?

From the manual I'd guess it would be to run the follwing on A

ssh -R *:9999:localhost:22 me@B

and then run this on C

ssh me@B -p 9999

but the previous command reports "Connection refused."

© Super User or respective owner

Related posts about ssh

Related posts about remote