for -R style forwarding it's a server policy issue.
the server decides whether to listen to localhost
or to all interfaces, so -g on the client side
does not help. however, for openssh's sshd you can
use Gatewayports=yes in sshd_config.
-m
On Wed, May 30, 2001 at 08:41:15AM -0500, Jack McKinney wrote:
> Scenario:
>
> A------B-----<Internet>-----C-----D
>
> If I am on B and execute:
>
> ssh C -g -L 6000:D:6000
>
> Then I can connect to B:6000 from A and reach D:6000
>
> However, If I am on C and execute:
>
> ssh B -g -R 6000:D:6000
>
> I should be able to do the same thing: connect to B:6000 from A
> and reach D:6000. However, I cannot. If I look at netstat -ant on B,
> I see:
>
> tcp 0 0 127.0.0.1:6000 0.0.0.0:* LISTEN
>
> The '-g' flag is getting ignore for '-R', but it works for '-L'.
> Am I doing something wrong?
>
> --
> JFByers: You're talking about a premeditated crime Jack McKinney
> against the United States government. [EMAIL PROTECTED]
> Frohike: Hey, your second one today. Welcome to the Dark Side.
> 1024D/D68F2C07 4096g/38AEF076 http://www.lorentz.com