Fix "No matching security types" when Connecting from Windows VNC to Ubuntu 16

Author: MikeW    Date: 2017-03-16 16:05   

Problem: Whenever I connect from a Windows VNC client to an Ubuntu 16.04 machine running Vino server, I get: “No matching security types”. The connection then fails. This happens on all Windows clients.

Explanation: The Vino server is setup to require encryption. However, encrytion is not setup on the server. Therefore, every attempt to connect fails.

Workaround: Disable encryption on the Vino server.

For more information see: TigerVNC No matching security types error

Solution: Create a script to disable encryption on the Vino server on startup.

disable-encrypt.sh

1#!/bin/bash
2gsettings set org.gnome.Vino require-encryption false

To run the script automatically, do the following:

  1. From a shell, run crontab -e
  2. Then add the following line:
    • @reboot /path/to/disable-encrypt.sh

Note: Running VNC unencrypted is not recommended in most situations. Only do this if you know what your are doing. The best thing to do would be to setup encryption on the Vino server.