In case you are using different names, then replace them accordingly. The Raspberry Pi official VNC documentation page suggests using tightvncserver on the Raspberry Pi and that worked well for me. Ssh In the above commands pi is my user account, while raspberry is the hostname. Ssh if you don’t have access to the router, use the commands below: ssh-keygen -R raspberrypi.local The VM is created and 5905 is listening, but only on ipv4 as shown here: netstat -l grep 5905 tcp 0 0 localhost:5905 0.0.0.0: LISTEN. If you are on Linux, use the Terminal, Windows users can opt for Putty. When specifying vnc with virt-install using this: -vnc -vncport5905 -noautoconsole. Once done, execute the command below on your PC. You can log in to your router and list the connected devices. To connect via SSH, you will need to know your Raspberry’s IP-address. Establish an SSH connection to the server on port 22, then, in the SSH console window, right-click on the top bar, and select Change Settings from the options list. If you have not yet enabled SSH on your Pi, read our post on connecting to Wi-Fi and allowing SSH without the monitor on Raspberry. To securely tunnel your VNC connection on Windows, Install Putty if not already installed, then set up SSH tunneling by navigating to the Session tab. To connect to the remote desktop, use the same client as in the first part of the tutorial - any VNC client you like. Connecting to a remote desktop The tunnel has now been created. With that necessary background information, let’s dive in and get started. Namely, go to Connection - SSH - Tunnels, enter 61000 in the Source port and localhost:5901 in the Destination.
It makes use of the Frame Buffer protocol (RFB), which allows you to transmit the keyboard and mouse events from your PC (thin client) to the remote computer (thick client), which relays back the graphical-screen updates. A VNC (Virtual Network Computing) is a desktop sharing system that enables you to connect remotely to another computer.