
Once the VNC connection is terminated logout or exit from the ssh session and the ssh tunnel is closed. The port number will follow the display indicated (5900+display).Ī normal VNC connection should be established to the remote system. Once connection is established, you can locally connect to VNC server via vncviewer. VNC or Virtual Network Computing is a platform-independent protocol that enables users to connect to a remote computer system and use its resources from a Graphical User Interface (GUI). You can also connect to VNC server using SSH local port forwarding. Just change it to a ":1" to use 5901 as indicated in the second ssh example. It basically invokes SSH local port forwarding. Ssh -L 5901:127.0.0.2:5900 this connection is established you can switch to another terminal and startup the vncviewer with the following command: The command to setup the local port 5901 to route to 5900 on the remote system would look like this: For example, when vncviewer is run for display :1 it will attempt to connect to port 5901 rather than 5900 (vncviewer host:1). If port 5900 is already in use on the administrator system a different port could be used. you basically connect to the ssh server like normal, but with these flags on the command, and it'll let you connect to vnc localhost, by forwarding the port through the tunnel you just made by logging into the ssh server. If I place the RH box on the 192.168.1.X subnet along with the XP Laptop and run the VNC session through a PuTTY SSH. On the machine which is being used to connect to the ssh machine. Ssh -L 5900:127.0.0.2:5900 -L port:host:port specifies that the given port on the local administrator host is to be forwarded to the given host and port on the remote side. Do you have proper routing and access from. From a terminal run the following command: On the administrator system a ssh connection will need to be established to the remote system. Add ssh to the allowed services if needed. Vnc Address Book is a program that enables you to add all UltraVNC/VNC remote servers' details with all of their IPs and passwords. Verify your firewall settings in YaST->Security and Users->Firewall. By default the firewall is turned on and ssh is blocked. The client systems must also allow an ssh connection as we will use a ssh tunnel to secure the VNC communication. The Remote Desktop selection in the Control Center runs "vino" which is a vncserver equivalent that allows the connection to display :0 (what the user is viewing) on port 5900. It starts a session independent from the users so you do not see the users desktop. There is also another selection for Remote Administration in YaST but it does not allow a connection to display :0. Remote systems must have the Remote Desktop feature enabled. Open the Control Center and under the System group take the selection for Remote Desktop.
