Re: SSH remote port forward

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



In article <f4n424$j1n$1@xxxxxxxxxxxxx>, Ugo Bellavance <ugob@xxxxxxxx> wrote:
> Hi,
> 
> 	I'm trying to do a remote port forward, and the remote hosts only 
> listens to 127.0.0.1 on the forwarded port.

You can't control that from the client end, as it could be a security risk
for the remote installation.

If the remote host is under your control and is running sshd from OpenSSH,
you can add the following directive to /etc/ssh/sshd_config on that system:

GatewayPorts yes

That will tell the sshd to make forwarded ports listen on 0.0.0.0 instead
of on 127.0.0.1

Don't forget "service sshd restart" after making the change.

Cheers
Tony
-- 
Tony Mountifield
Work: tony@xxxxxxxxxxxxx - http://www.softins.co.uk
Play: tony@xxxxxxxxxxxxxxx - http://tony.mountifield.org
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux