24

I am trying to set up a VNC connection from my PC (Ubuntu 18.04) to a headless (I can use only terminal) Raspberry Pi zero w (Rasbian 2020) using Remmina, but I am getting the error window:

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

I have installed vnc in the raspberry and started it with vncserver :1. It gave me an IP-like thing. Then I have set a password with sudo vncpasswd -service and with vncpasswd -user using the same password. Then I tried to connect from the Ubuntu (PC) by using Remmina with the following credentials:

Server: [the IP-like address]
Repeater:

User name: [my_username]
User password: [server_or_user_password]

I tried both passwords, adding the line Authentication=VncAuth to the end of .vnc/config.d/vncserver-x11 and disabling encryption. In all cases, Reminna opens the error window and I can't connect.

1
  • Worked for me with the steps for the question. Commented Dec 5, 2020 at 21:23

6 Answers 6

21

A bit neater write up on the same under the link below. Tested against default VNC server on Raspberry Pi 3 running Debian 11 (Bullseye).

https://docs.linuxconsulting.mn.it/notes/remmina-vnc-raspberry

====== Connect to Raspberry Pi OS via VNC using Remmina ======

-- //Tested with Raspberry Pi OS on July 2020// --

When trying to connect from your Linux machine using Remmina to a Raspberry Pi running Raspberry PI OS with RealVNC enabled you get the error

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

RealVNC only supports a few security schemes. Authentication=VncAuth seems to be the only scheme that allows direct connections from VNC-compatible Viewer projects from third parties. In order to change to VncAuth scheme in your Raspbian and set a password to accept connections from Remmina VNC plugin, open a SSH session (or a terminal window) on the Raspberry and generate your VNC password with:

sudo vncpasswd -service

Now, edit the file /root/.vnc/config.d/vncserver-x11

sudo nano /root/.vnc/config.d/vncserver-x11

and add the following line at the end of the file:

Authentication=VncAuth

Now your config file should look more or less like mine:

  _AnlLastConnTime=int64:0000000000000000
  _LastUpdateCheckSuccessTime=int64:01d65c12272dff1a
  _LastUpdateCheckTime=int64:01d65c12272dff1a
  Password=c3abbea3b003a0b231737c0541892d72
  Authentication=VncAuth

c3abbea3b003a0b231737c0541892d72 is the encrypted version of ''raspberry''; your line will be different.

Eventually, restart the VNC server service with

sudo systemctl restart vncserver-x11-serviced

and you are ready to connect to you Raspberry Pi using Remmina.

1
  • 2
    Followed these instructions exactly, but still getting the same error. I'm not sure if the system service is using that file for config options, or if just restarting the service will do it? Kind of surprised that it didn't work after restarting the service because this seems like the issue. Commented Jul 19, 2023 at 20:49
10

I tried both passwords, adding the line Authentication=VncAuth to the end of .vnc/config.d/vncserver-x11 and disabling encryption

Modifying the .vnc/config.d/vncserver-x11 file changes how vncserver runs in service mode. These settings are ignored if you launch vncserver directly. Given that you're starting vncserver as follows

I have installed vnc in the raspberry and started it with vncserver :1

it means that the authentication method for that vncserver instance will not be using Authentication=VncAuth but instead the default (which Remmina doesn't understand).

To resolve this problem, start vnc server as follows:

$ vncserver -Authentication VncAuth :1

Note that these arguments are case sensitive (and doesn't always give useful error message if you get it wrong).

1
  • This can be accomplished for the vncserver that runs on the 'desktop' of the Pi (if you have a monitor hooked up) by clicking on the VNC server icon in the system tray, going to options and changing the Authentication to 'VNC Password' and then setting a password on 'Users and Permissions' tab in options. Commented Dec 5, 2021 at 13:23
8

I know this is an indirect solution for the above error. This will install Real VNC Viewer and use this to create a working VNC connection out of the box. However now Real VNC requires for an account so it is not so much of a solution anymore...

Download the Real VNC Viewer from here. After installing and starting the program, I had to put the Domain (The raspberry IP and not the "IP-like thing"), the username and the user password.

The installation was done on the command line using:

wget https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.20.529-Linux-x64.deb
sudo dpkg -i VNC-Viewer-6.20.529-Linux-x64.deb 

Tested on Ubuntu 18.04.

4
  • 1
    Works on Ubuntu 20.04.2 too
    – Jeni
    Commented Apr 7, 2021 at 20:10
  • Thank you for this workaround but it does not answer the question to connect with remmina or other third-party. You need an account at RealVNC to download their proprietary client and you don't need as many clients as different protocols you use. For this, remmina is a must-have.
    – useful
    Commented Aug 24, 2022 at 18:53
  • Oh, it wasn't like this in 2020... ok I will update
    – Phineas
    Commented Aug 25, 2022 at 8:10
  • Good solution. You can use RealVNC viewer for free, and they don't seem to charge for Raspberry Pi servers.
    – ChrisE
    Commented May 6 at 22:11
1

My final solution was also not to use Remmina. I used TigerVNC from Linux Mint and it just worked, after hours of trying to make Remmina work (which works fine for other Linux and Windows vnc servers).

0

As all of these hints did not work for me, i was investigating by try and error. Maybe someone finds my solution helpfull.

I went to the gui settings of realvnc-Server (click right on Vnc-logo in the upper task-bar) and choose "options".

I switched temporary to "Interactive UNIX-Authentication". I was informed, that the PW would be deleted. Tried connection on remmina: Failed.

But after switching back to VNC-PW: As I set the VNC-PW via gui again, i choosed the option "allow old PW sheme" (or something like that).

New try with remmina: That did it! :)

0
0

None of these worked for me. My solution was to simply use RealVNC Viewer instead of Remmina. If my understanding is correct Remmina does not support proper authentication schemes to connect to RaspberryPI.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .