When connecting with Remmina to a Raspberry Pi using VNC I’ve been getting issues lately. I got an error like:

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

When searching for a solution I came acros two posts:

The stack exchange answer, described a solution which on its own did precisely nothing for me to resolve the issue. However, it did force me to fill in a password, and change the encryption option to prefer on:

# echo 'Encryption=PreferOn' >> /root/.vnc/config.d/vncserver-x11
# vncpasswd -legacy -service
Setting "Password" VNC parameter for Service Mode server
Password:
# systemctl restart vncserver-x11-serviced

When executing vncpasswd -legacy -service, and you wanna fill in an insecure password, e.g. less than six characters. you can add the -weakpwd flag:

vncpasswd -service -weakpwd

However, after adding the following line (from the super user answer) to /root/.vnc/config.d/vncserver-x11:

Authentication=VncAuth

It worked again. As a one liner:

echo "Authentication=VncAuth" >> /root/.vnc/config.d/vncserver-x11

Forgot VNC password on Raspbian / Raspberry Pi OS

Additionally, you can restore your VNC password by changing the line starting with Password= in /root/.vnc/config.d/vncserver-x11 to e.g. c3abbea3b003a0b231737c0541892d72 (which would change it to raspberry):

Password=c3abbea3b003a0b231737c0541892d72