[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SSH: only listens on loopback



2nd challenge

Using -R instead of -L, I get the same problem on the server, and -g doesn't 
fix it.

ie. with #ssh -f -N -g -L 8080:192.168.254.200:80 user@192.168.254.19

I would expect the sshd running on .19 to start listening to port 8080, and 
forwarding it to the webserver on .200. It works locally, on the sshd server, 
but I can't get to http://192.168.254.200:8080 from another remote host.

thanks.

rich


On Wednesday 04 August 2004 15:51, Robert Vangel wrote:
> You want to add a -g in there, so:
>
> # ssh -f -N -g -L 8080:192.168.254.19:80 user@localhost
>
> From man ssh:
>
> [..]
>  -g      Allows remote hosts to connect to local forwarded ports.
> [..]
>
> rich said:
> > I have a server on 192.168.254.200 and a webserver on .19
> >
> > I run # ssh -f -N -L 8080:192.168.254.19:80 user@localhost
> >
> > which sets it up so that
> > # lynx localhost:8080
> > brings me the page from the webserver at .19
> >
> > BUT, the 8080 port is only open to the local host, and I want it open for
> > all.
> >
> > # lynx 192.168.254.200:8080
> > doesn't work.
> >
> > nmap localhost shows the port is open, but nmap 192.168.254.200 shows
> > it's closed.
> >
> > I've set
> > ListenAddress: 0.0.0.0
> > in sshd_config but that didn't seem to do anything.
> >
> > I've trawled the 'net but found very little help.
> >
> > thanks
> >
> > rich.
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> > listmaster@lists.debian.org



Reply to: