Friday, October 14, 2005

Problems with port forwarding using SSH[R]

Port forwarding feature using SSH is failing.
Resolution: Top

Confirm these configuration settings in /etc/ssh/sshd_config file:

AllowTcpForwarding yes
GatewayPorts yes

Then execute:

# ssh -g -L 8080:webserver:80 webserver

In this example, systems connecting to http://webserver:8080 will be
forwarded to the web server daemon httpd listening on TCP port 80 on
the host webserver.

If you allow root access with this setting in /etc/ssh/sshd_config:

PermitRootLogin yes

You can use privileged or reserved ports (range 1-1023) with the above command.
Temporary Workaround: Top

Additional Information: Top

0 Comments:

Post a Comment

<< Home