Page 1 of 1

VNC viewer: "No matching security types"

Posted: Mon Mar 06, 2017 1:40 am
by Michele31415
So I did an update today on my Pi 3 running Raspbian. Now when I try to connect to it using VNC from my PC, the VNC viewer goes "No matching security types". That's with RealVNC. I get the same error when running vncviewer in Solaris 10. If I try TightVNC on the PC, I get "No security types supported". Oddly enough, the VNC Viewer app for Android works fine.

I tried restarting the Pi's vncserver with "vncserver -Encryption AlwaysOff" but that didn't help. There seems to be no shortage of questions about this error on the web, but no answers that helped. I searched the forum here and came up empty. Does anyone know what the problem is here?

Re: VNC viewer: "No matching security types"

Posted: Mon Mar 06, 2017 5:59 am
by Michele31415
Update

For the benefit of anyone else with this problem, here's the solution.

Using the Android VNC Viewer app, I was able to open a connection to the Pi. From there I opened the VNC server window. From there I went to the Options menu, set Authentication to "VNC password" and Encryption to "Prefer off". I then clicked OK and that was that. I can now log into the Pi using RealVNC and TightVNC from my PC's again.

Re: VNC viewer: "No matching security types"

Posted: Mon Mar 06, 2017 7:15 am
by DougieLawson
Why not replace your VNC viewer with https://play.google.com/store/apps/deta ... er.android

Re: VNC viewer: "No matching security types"

Posted: Mon Mar 06, 2017 4:50 pm
by Michele31415
That's the one I'm using. It's lucky it worked too, as the procedure for changing this via ssh looked a lot more complex. And as I have no HDMI cable, that's my only access.

Re: VNC viewer: "No matching security types"

Posted: Wed Mar 22, 2017 4:48 pm
by kdebruine
Thanks. This fixed it on my RPi 3 running Jennie. I use TightVNC Viewer.

Re: VNC viewer: "No matching security types"

Posted: Wed Mar 22, 2017 6:41 pm
by jahboater
kdebruine wrote:Thanks. This fixed it on my RPi 3 running Jennie. I use TightVNC Viewer.
Did you mean "Jessie" on your Pi3?

Re: VNC viewer: "No matching security types"

Posted: Sun Dec 10, 2017 2:53 pm
by estufa8
Michele31415 wrote:
Mon Mar 06, 2017 5:59 am
set Authentication to "VNC password" and Encryption to "Prefer off".
Thanks, it worked! I used Chrome VNC from Windows to set that config. Now I can connect using RealVNC.

Re: VNC viewer: "No matching security types"

Posted: Thu May 30, 2019 6:27 pm
by PiPilotDi.ink.ar
You can use following steps:
Step 1: If you have VNCServer already running just kill it. Use "vncserver -kill :windowNumber". You can find your window number in the raspberry pi terminal. Generally, you can use 1.

Step 2: Now you should start your VNCServer by the following command "vncserver -Encryption PreferOff -Authentication VncAuth". Hit Enter.

Step 3: This would also prompt you to provide the password just enter a simple one like "raspberry".

Step 4: Go to the VNC Viewer client on your client PC. Enter the IP address of your Raspberry Pi followed by the display number. Ex: "192.168.43.0:1" Click on Connect. Enter the specified password. And you are logged into your VNCServer.

Hope this would help.

Re: VNC viewer: "No matching security types"

Posted: Tue Nov 26, 2019 7:36 am
by cwclee
Hi PiPilotDi.ink.ar,
Your solution is working for me. However, once the Pi re-started, I have to run the command "vncserver -Encryption PreferOff -Authentication VncAuth" again. How can I add the command some where in Pi so the command will run once the Pi starts?

Thank you!