LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Initiate ssh tunnel to connect to ssh? (http://www.linuxquestions.org/questions/linux-security-4/initiate-ssh-tunnel-to-connect-to-ssh-901595/)

brianmcgee 09-07-2011 10:06 AM

Initiate ssh tunnel to connect to ssh?
 
Hi,

Given the following setup:

Code:

Client            <Firewall>            Server
22 SSH |------initiate SSH Tunnel------> 22 SSH
^
+---------connect to SSH via Tunnel------12345

Is it possible that a client initiates a SSH tunnel with a server via passwordless login so that someone at the server side may connect via:

Code:

[Server]$ ssh -p 12345 user@localhost
and to be forwarded to the Client's port 22? And if that is possible, could someone please enlighten me how this is done?

allend 09-07-2011 10:57 AM

I think that you want a reverse secure shell tunnel.
e.g. http://www.howtoforge.com/reverse-ssh-tunneling
http://www.techrepublic.com/article/...tunnel/5779944

brianmcgee 09-07-2011 11:07 AM

Thanks. That is exactly what I was looking for! With the proper keyword also the man page of ssh reveals the right parameters.


All times are GMT -5. The time now is 02:20 PM.