

Otherwise, you can specify the IP address or hostname if VNC allows connection on all interfaces.įor example, to login to second display number of the VNC server accepting connections on loopback interface as user amos vncviewer -via localhost:2 If you restricted VNC access to allow only encrypted connections from the loopback interface, you would simply use the localhost:1 to connect to the display number 1. : specifies the display number to connect to on the VNC server.It can be IP address or hostname (if you have DNS) USER: is any user that can ssh into the VNC server.Once the installation is done, you can now connect to a VNC server by executing the command below vncviewer -via You can even use xvnc4viewer apt install xvnc4viewer In case you have not already installed it, simply run the command below to install ĭnf install tigervnc Install TigerVNC Client on Ubuntu/Debian Derivatives apt install tigervnc-viewer

TigerVNC client ( vncviewer) is provided by the tigervnc package on CentOS and similar derivatives. Connect to VNC Server with vncviewer -via Option Install TigerVNC Client on CentOS/RHEL Derivatives Once connection is established, you can locally connect to VNC server via vncviewer. You can also connect to VNC server using SSH local port forwarding.It basically invokes SSH local port forwarding. It then connects to the server through that tunnel.

You can connect to a VNC server through the VNC client ( vncviewer) with the -via command line option which enables it to automatically create an encrypted TCP tunnel to VNC server before connection is established between the client and the server.
#Vnc connect guide how to#
In our previous guide, on how to install and configure VNC server on CentOS 8, we saw how to test local VNC server connection using TigerVNC client, vncviewer. Using Shrew VPN Client to Create Cisco IPSec VPN Connection in Windows Connect to VNC Server via SSH Tunnel
