[ILUG-BOM] SSH tunnel

Nadeem M. Khan nadeem.m.khan at gmail.com
Sun Feb 21 20:16:23 IST 2010


On Sat, Feb 20, 2010 at 10:55 AM, Sameed Ahmed <sameed at ymail.com> wrote:
> Thank a lot guys,
> communities are really very helpful.
>
> actually, i found very good thing,
> once i get connection from home to office , i can easily connect back to home without knowing my home IP.
>
>
> 1)create a tunnel to connect to server abc using SSH from user foo
>
> #ssh -R 988:localhost:22 root at abc.xyz.com   (from home)
>
> once u got connection, dnt restart ur home pc
>
>
>
> 2) Now from root user of server, connect to 988 port using SSH
>
> ssh -p 988 foo at localhost
>
>
> it will connect to home pc bypassing static ip and router.

And what was happening when you tried connecting to the server without
creating the tunnel?

Regards.
NMK.


More information about the Linuxers mailing list