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

Re: SSH: only listens on loopback



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
>
>


-- 
Robert Vangel
  * RedFlag LANfest
    Network Services Management



Reply to: