[CentOS] SSH remote port forward

Ugo Bellavance ugob at lubik.ca
Tue Jun 12 21:43:30 UTC 2007


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.

[ugob at server ~]$ netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address 
     State
tcp        0      0 127.0.0.1:5500              0.0.0.0:* 
     LISTEN
tcp        0      0 0.0.0.0:5666                0.0.0.0:* 
     LISTEN
tcp        0      0 ::1:5500                    :::* 
     LISTEN
tcp        0      0 :::22                       :::* 
     LISTEN

(I'm trying to tunnel a vnc client connection.

 From putty's logs, you can see that the tunnel is requested:

2007-06-12 17:34:15	Opened channel for session
2007-06-12 17:34:15	Requesting remote port 5500 forward to 10.0.0.1:5500
2007-06-12 17:34:15	Remote port forwarding from 5500 enabled

(I changed the real IP address to 10.0.0.1).

In putty, the "Local ports accept connections from other hosts" and 
"Remote ports do the same" are checked.

Any ideas?

Regards,

ugo




More information about the CentOS mailing list