Virtual Network Computing, better known as VNC, has been around for decades and can be used to control computers running a plethora of different operating systems including Windows, macOS, Linux, and even mobile platforms like Android.īy using VNC, you are able to see and control the host machine's desktop from another remote device. Instead, you can connect remotely to it through any available computer or smartphone.
#OPEN VNC VIEWER CONNECTION HOW TO#
That is it, we now know how to securely connect to VNC both on Windows and Linux machine.With Virtual Network Computing, you don't need to carry a spare keyboard, mouse, or monitor to use your headless computer's full graphical user interface (GUI). To terminate it properly, either don’t use -f switch so it will be easier, or if you used -f switch, after you are done with VNC and SSH enter following command sudo killall ssh Now, with the ssh command we used switch -f which means our ssh session is hidden. If everything went ok you will be connected
#OPEN VNC VIEWER CONNECTION PASSWORD#
You will be asked for password of remote VNC user Start it and in VNC server window enter: Localhost:5901 Now, after we established connection, we will start TigerVNC Viewer on Ubuntu, if you don’t have it installed, there is installation in Ubuntu Store l root – user to log into remote machineġ0.20.10.2 – change with the remote IP of the server you want to connect to. f ssh will go to the background so you can use terminal L specifies local port that is forwarded to the given host and port on remote side. Open terminal and enter following command: ssh -L 5901:localhost:5901 -N -f -l informaticar 10.20.10.2 I will cover Ubuntu, but more or less it is same for many distros. You can test your VNC connection as localhost:5901 without SSH tunnel, of course, it should not work. If you did everything ok, you will be prompted for VNC password: Enter it, and confirm with OK We defined it in tunnels section of Putty. Why not IP address or name of the VNC server we are connecting to?īecause we are now tunneling port 5901, and SSH will forward that port from local machine to remote VNC machine we want to connect to. In the address bar you should enter localhost:5901 and confirm with Enter Now, we have established SSH connection to remote server.
If everything went ok, you should be looking at the screen like the one above. You can also go back to the Session and click on Save again to also save these changes.Īs I mentioned, return to Session screen in Putty, save these additional changes and click on OpenĬonsole Window will open and ask for credentials of the machine you are connecting to. (VNC covers range of ports, so be sure to know to which VNC port you are connecting)Ĭlick on Add, and its settings should appear in the box above the fields where we entered data. Under Destination enter Remote IP address of VNC server you wish to connect to, and VNC port opened on it. Now, under Category on the left side, choose Connection, SSH and click on Tunnels On Session category, choose SSH as connection type, in Host Name enter address of remote server (in my case 10.20.10.2) and port 22 (or different if you defined different SSH port)Īlso, you can type a name into Saved Sessions and Save it for future use. Remote server which we want to VNC into is on IP address 10.20.10.2 If you don’t have VNC server set, here is another one – Windows & Puttyįirst, we will go through Windows setup and use Putty and VNC viewer. If you don’t have SSH server set, here is the tutorial – This tutorial assumes you have SSH Server and VNC Server installed and set on the server you want to connect to. Better idea is to access VNC through SSH tunnel. VNC is not secure and is unencrypted, so connecting over LAN or internet to VNC server is not the brightest idea.