12

With the latest Dist-upgrade, it appears the VNC security settings have been changed which means I cannot access my Pi through VNC until they are changed back. I have SSH access.

As the Pi is over 100 miles away I would like to find a way of changing the security settings to enable me to connect with VNC again without having to be present. I remotely connect to a PC on the remote network and I have SSH access to the PI through that PC.

The error I get when trying to connect is "Error in TightVNC Viewer. No security types supported. Server sent security types, but we do not support any of them"

To make the answers to the question as useful as possible to anyone with a similar problem in the future I will phrase it as follows.

Using only SSH how can I ensure I have suitable VNC security settings?

11

To be able to use a non-compatible realvnc client you have to downgrade the security of the realvnc server to use vnc password authentication. To be able to to this without a desktop connection open a SSH session:

  1. Edit the config file in /root/.vnc/config.d/vncserver-x11
  2. Add the following lines at the end of the file

    Authentication=VncAuth
    Encryption=AlwaysOff
    Password=e0fd0472492935da
    
  3. Restart the server

This will set the authentication with the password: foobar. In order to change the password,

vncpasswd -service

Connection tested with TigerVNC 1.7.1

4

Try using the realvnc viewer. There is some difference in the security settings between the two which produces that message.

  • I wanted to post - Thank you that worked although for other people with the same issue they may need to know that you will need to sign in with your username and password which you use to sign into your Pi not the password used to sign into tightVNC. I have upvoted but it will not show until I get 15 rep. – johnFX Mar 19 '17 at 17:07
  • If anyone has the answer to the original question I would still like to know a way of restoring the security types (using SSH) to enable me to use the TightVNC viewer I have been using previously. – johnFX Mar 20 '17 at 18:34

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.