From: Samimi, Ashkan (Contractor) (SamimiA@bp.com)
Date: Fri, 21 Mar 2003 12:07:40 -0000 From: "Samimi, Ashkan (Contractor)" <SamimiA@bp.com> To: "Ben Lindstrom" <firstname.lastname@example.org>
Thanks for the answer. The -g option binds the forwarded port to ALL
available IPs on the PC/SERVER. I wanted to have this bind be selective.
i.e. bind the local forwarded port xxxx to IP xxx.xxx.xxx.xxx and bind
local forwarded port yyyy to IP yyy.yyy.yyy.yyy
I don't think it's possible!!??
On Thu, 20 Mar 2003, Samimi, Ashkan (Contractor) wrote:
> I'm having problems using the "-b" option with ssh. the command:
> ssh -b 184.108.40.206 -v -v -v -N -L 139:220.127.116.11:139
> will bind to the local host instead of specified IP address (-b
> debug1: Connections to local port 139 forwarded to remote address
> debug1: Local forwarding listening on 127.0.0.1 port 139.
> What do I do wrong?
Your usage of -b. -b does not affect -L. -b is for selecting what your
*OUTBOUND* address will be. Are you looking for -g option?
-g Allows remote hosts to connect to local forwarded ports.