I want to remote connect to it from my laptop. I enabled the VNC server on Raspberry Pi and I tried to connect to it from either Remmina 0.9.99.1, Remote Desktop Viewer, or even Gtk VNC Viewer. In Remmina it gives me the following error:

Unknown authentication scheme from VNC server: 13, 5, 6, 130, 192

I failed to make this work, although I can connect smoothly using SSH. Any ideas how can I make it work as it looks it should be a straight forward thing.

7 Answers
7

later I found out another solution to make it work for Remmina 0.9.99.1. You can change the security authentication for the VNC server to be VNC Password instead of Unix password and create an admin user credentials so you can use it in the remote connection as the following:

On VNC Server side on Raspberry Pi 3

Go to the options on the VNC Server on Raspberry Pi 3 and you should have the sudo credentials when you started VNC server

Change the security authentication to VNC Password as shown below

Finally you need to add a user to use it to connect. In my case I created an administrator user (default username was admin)

On Remmina side on Ubnutu

You will create a new connection with the given IP address of the Raspberry Pi on your local network (you should be able to know it using ifconfig) and using the admin user credentials created on VNC server as the following:

Please note that It worked with me while encryption was off, as it made some problems mentioned in other posts. I will try to see if it will work with encrypted on or no.

Given that this requires turning off encryption I would consider this a non-starter from a security perspective.
– Steve RobillardJun 22 '17 at 13:59

non-starter unless you are using an ssh (encrypted) tunnel and restrict vnc either with a firewall or a network mask of allowed addresses (or both)
– Scott WoodOct 26 '17 at 15:40

I always use SSH tunnel and using -localhost (for tightvncserver) and ip mask for realvnc-vnc-server, so no one except me from tunnel can enter. Plus a little 8 lenght password, of course. Same for vps than for rpi. Security is a must, always.
– m3ndaMar 30 '18 at 19:20

How do you do this from the terminal? (through SSH tunnel)
– Elie G.Dec 19 '19 at 1:36

The simplest solution is to install RealVNC Viewer. You can download it from here, and it is available for Linux, MacOS and Windows. The issue is with the encryption schemes used by different VNC servers.

The main problem is that the Raspberri Pi runs RealVnc as server. Lots of answers suggest to connect using RealVncViewer. But RealVnc is not really free, it has a free version, and uses special encryption schemes. Probably good ones, but this makes it harder to use other VNC clients.

Steps to find out about this:

aptitude search vnc

look for installed packages with i in the first column

on my PI it showed realvnc

The obvious solution, and I tried this with success, is to remove the RealVNC server from the Pi, and to switch to a 'regular' VNC server like x11vnc. Steps: