- is a graphical desktop-sharing system that uses the Remote Frame Buffer protocol (RFB) to remotely control another computer
- more efficient and selective way to display graphics from a remote connection
- it requires the implementation of a tunnel or the remote host to allow connections to given ports.
- ssh into the remote server, e.g.
ssh userName@remote.server.ip
- launch a VNC server in the remote host, e.g.
vncserver
- Check with
vncserver -list
, and take note of the port number, usually denoted as:XXXX
- set a password using
vncpasswd
-- do NOT leave a password-less VNC setup!!! - ssh into remote server creating a tunnel to the local machine, i.e.
ssh -fN -L5904:localhost:XXXX userNAME@remote.server.ip
- in your local machine launch a VNC client, eg. remina, tigervnc, etc.
In MacOS, you can type in the terminal,
open vnc://localhost:5904
VNC is one protocol used to remotely access computational resources but there are many other ones. For instance, communication applications may use their own ones to give users access to control remote resources, or specialized applications may entitle users to control remote computers using proprietary protocols. Another example of such is the Remote Desktop Protocol (RDP) mostly used in Windows machines.
Independently of the specific protocol used, one should note that these are a liability form cyber-security considerations. Extreme caution must be followed when using these type of tools, and awareness that they may weaken the cybersecurity perimeter of an organization or device by enabling weak or blind spots when accessing the remote resource.
References:
Last Modified: Jun. 13, 2023 -- v 1.0