[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ilugc
Subject:    Re: [Ilugc] .a-tip-a-day. (ssh port forwarding)
From:       Kapil Hari Paranjape <kapil () imsc ! res ! in>
Date:       2009-10-30 1:52:04
Message-ID: 20091030014004.GA25418 () imsc ! res ! in
[Download RAW message or body]

Hello,

On Fri, 30 Oct 2009, Girish Venkatachalam wrote:
> LOCAL port forwarding:
> 
> $ ssh -L 1234:127.0.0.1:4321 61.1.1.2
>                  ^^^^^^^^^^^^^^^
>                   <local portion>
> will forward the local port 1234 to 6.1.1.2 4321.

This is "almost" true. The correct statement is that this will forward
connections made on the local machine at port 1234 to the remote
machine at the address 127.0.0.1:4321 _on_ the remote machine.

Usually, network daemons listen on *:4321 (where * takes all possible
local interface addresses) so this should work exactly as if the
connection was made to 6.1.1.2:4321.

Sometimes ... you may get a surprising result :-)

So if you really wanted 61.1.1.2:4321 then that is what you should
use.

  $ ssh -L 1234:6.1.1.2:4321 61.1.1.2

Regards,

Kapil.
--

_______________________________________________
To unsubscribe, email ilugc-request@ae.iitm.ac.in with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic