Code:
ssh -i /home/knoppix/homeserver -l root -L 5995:192.168.0.8:5901 www.server.com
gets me an ssh connections to my server
but
Code:
knoppix@0[~]$ vncviewer localhost:5995
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
knoppix@0[~]$
Code:
root@0[knoppix]# netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:68              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:5995          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN
tcp6       0      0 ::1:5995                :::*                    LISTEN
Active UNIX domain sockets (only servers)
Im testing this from inside my LAN , so the SSH is going out and then coming back in.
I can connect directly to the VNC server with
Code:
vncviewer 192.168.0.8:1
and a connection from outside with a windows client & putty (L 5900 remote 192.68.0.8:5901) works

whats wrong with the port forwarding?