-   Linux - Security (
-   -   Initiate ssh tunnel to connect to ssh? (

brianmcgee 09-07-2011 09:06 AM

Initiate ssh tunnel to connect to ssh?

Given the following setup:


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:


[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 09:57 AM

I think that you want a reverse secure shell tunnel.

brianmcgee 09-07-2011 10: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 09:43 AM.