Michele31415
Posts: 18
Joined: Sat Dec 10, 2016 10:22 pm

VNC viewer: "No matching security types"

Mon Mar 06, 2017 1:40 am

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?

Michele31415
Posts: 18
Joined: Sat Dec 10, 2016 10:22 pm

Re: VNC viewer: "No matching security types"

Mon Mar 06, 2017 5:59 am

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.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: VNC viewer: "No matching security types"

Mon Mar 06, 2017 7:15 am

Why not replace your VNC viewer with https://play.google.com/store/apps/deta ... er.android
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Michele31415
Posts: 18
Joined: Sat Dec 10, 2016 10:22 pm

Re: VNC viewer: "No matching security types"

Mon Mar 06, 2017 4:50 pm

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.

kdebruine
Posts: 1
Joined: Sun Mar 12, 2017 6:45 am

Re: VNC viewer: "No matching security types"

Wed Mar 22, 2017 4:48 pm

Thanks. This fixed it on my RPi 3 running Jennie. I use TightVNC Viewer.

jahboater
Posts: 5759
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: VNC viewer: "No matching security types"

Wed Mar 22, 2017 6:41 pm

kdebruine wrote:Thanks. This fixed it on my RPi 3 running Jennie. I use TightVNC Viewer.
Did you mean "Jessie" on your Pi3?

estufa8
Posts: 2
Joined: Wed Jul 20, 2016 1:59 pm

Re: VNC viewer: "No matching security types"

Sun Dec 10, 2017 2:53 pm

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.

PiPilotDi.ink.ar
Posts: 1
Joined: Thu May 30, 2019 6:04 pm

Re: VNC viewer: "No matching security types"

Thu May 30, 2019 6:27 pm

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.

cwclee
Posts: 1
Joined: Tue Nov 26, 2019 7:30 am

Re: VNC viewer: "No matching security types"

Tue Nov 26, 2019 7:36 am

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!

Return to “Troubleshooting”