Ubuntu 16.04 LTS fully upgraded on computer Raspbian Jessie Lite fully upgraded on Rpi 3

I can SSH no problem into the raspberry, configured it from raspi-config to enable vnc at boot.

I then tried to connect to it via tightvncviewer and got the following error:

Connected to RFB server, using protocol version 3.3 No configured security type is supported by 3.3 VNC Viewer

Using VNCviewer on android it connects but only a black screen shows.

I tried to manually launch vnc server form ssh but still no luck.

What should the next step to fix this be?

  • 1
    "configured it from raspi-config" i.e. RealVNC which is a non-standard proprietary implementation, then "tried to connect to it via tightvncviewer" which is incompatible.
    – Milliways
    Jun 29 '17 at 10:45

You have 2 options

  • Install tightvncserver on the Pi, or
  • Install RealVNCviewer on your computer.
  • 1
    ... where tightvncserver (or x11vnc or ...) is in Raspbian, and RealVNCviewer is NOT in the ubuntu distro. 3rd option, as mentioned in another post, is to disable encryption . . .
    – Roland
    Sep 8 '19 at 16:54

I ran into this trying to access a Raspberry Pi using UltraVNC on Windows 10. The solution is to go into the VNC Connect Options on the Raspberry Pi desktop, on the first tab "Security" change the Authentication from UNIX password to VNC password. You will then be prompted to set the VNC password.

I'm sure this can be done by modifying a config file from the console but I don't have that information.

You do not have to switch to tightvncserver or use RealVNC. Perhaps their defaults work out of the box, but this is a simple config tweak on the pi to make the stock VNC use the more universal internal password authentication.

  • Thanks. I had a similar problem connecting from MobaXterm on Windows 10 to Raspian (Pi OS) Buster. Was able to configure standard Pi VNC server by changing password as described above. Also had to set up a VNC user on the server, but pretty simple.
    – Thor
    Jun 20 '20 at 12:02
  • 1
    To switch from default UNIX authentication to VNC authentication, add this line (Authentication=VncAuth) to ~/.vnc/config.d/Xvnc Sep 25 '20 at 16:32

You need to set the authentication global variable to VncAuth:

  1. Just issue the following command from cli and you will be prompted to enter a new password twice, that will be used to connect to your Raspberry PI from vnc: $ vncserver -Authentication VncAuth
  2. After you have set your password, just kill every running vncserver session using $ vncserver kill :X where X is the session number starting from 1. Alternatively, just restart your Raspberry PI.
  3. Then, just start vncserver eg from cli with executing $ vncserver (in certain cases you might need to issue $ vncserver -Authentication VncAuth to force the vncserver to start with VncAuth) and connect to your session using the 5901 default port from your other desktop. If you are on OS X, eg on MacBook, then you can use the vnc://<RPI IP or hostname>:5901 url without any additional program.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.