I am trying to log into a desktop that is running CentOS 4.2 by tennelling VNC through SSH.. The desktop auto-logins a user, then sits there waiting for me to login. On the client side, I fire up SSH tunneling ssh -L 8000:127.0.0.1:5900 The client spits back the error vncviewer: ConnectToTcpAddr: connect: Connection refused Unable to connect to VNC server The server says channel 5: open failed: connect failed: Connection refused channel 5: open failed: connect failed: Connection refused I've tried ssh -L 5900:127.0.0.1:5900 ssh -L 8000:localhost:5900 and neither work. I've also tried using the command vino-preferences on the remote desktop. It tells me to connect to vnc:/IP-address:0 Whats interesting is that if I issue the command vncserver on the remote desktop, it starts up a new server on display :1. I can connect to this display with no issues via the SSH tunnel. Does anyone know how I can fix this problem? I use SSH tunneling and VNC with display :0 on SUSE 10.0 machines all the time without issues. thanks
On 4/1/06, Ryan <ryanag at zoominternet.net> wrote:> I've also tried using the command vino-preferences on the remote > desktop. It tells me to connect to vnc:/IP-address:0 > > Whats interesting is that if I issue the command > vncserver > on the remote desktop, it starts up a new server on display :1. I can > connect to this display with no issues via the SSH tunnel. > > Does anyone know how I can fix this problem? I use SSH tunneling and VNC > with display :0 on SUSE 10.0 machines all the time without issues. > > thanks >Hi Ryan, I usually just use the vncserver approach, which starts the :1 on port 5901, so I may not be the best person to advise you. However, I'm wondering if you go to the device running the "VNC server" and do a command like "netstat -tupan" (run as root to get the PIDs) to see what port the VNC process is using. Maybe it's not on 5900 for some reason. Kennedy