50

Worked fine before, but since upgrading to Ubuntu 14.04 LTS, whilst the connection shows in Finder OK when clicking on it says "Connection failed to “XXX's remote desktop on Xxxxx”. The software on the remote computer appears to be incompatible with this version of Screen Sharing."

Desktop Sharing Preferences set to allow sharing and a password is requeted.

Everything else seems OK. Anyone got any ideas?

Hugh
  • 1,269

2 Answers2

75

Sorted.

Using a combination of clues from http://discourse.ubuntu.com/t/remote-desktop-sharing-in-ubuntu-14-04/1640 (which is all about VNC access) and https://bugs.launchpad.net/ubuntu/+source/vino/+bug/1281250 (which discusses the bug introduced into Vino) I have managed to resolve the matter.

Essentially you have to disable encryption on remote desktop access in Gnome due to a bug that has come to surface in Vino. However some threads tell you uncheck it in the wrong place. Follow these guidelines and you should be able to resolve it quickly.

Specifically it's

dconf > org > gnome > desktop > remote-access > require-encryption - uncheck

and NOT

dconf > desktop > gnome > remote-access > enabled - uncheck

Here is how you do it:

  1. First make sure Desktop Sharing is set up properly.
  2. Download dconf-tools by typing in Terminal sudo apt-get install dconf-tools
  3. Run dconf-editor
  4. Expand org
  5. Expand gnome
  6. Expand desktop
  7. Select remote-access
  8. Uncheck require-encryption (don't click on Set to Default as it rechecks it)
  9. Exit dconf-editor

It should now work. Tested through a reboot and all good.

Hope it helps.

(I have got a screen shot of dconf but don't have enough points on here to post it - I am sure everyone can work it out for themselves though! :-) )

Hugh
  • 1,269
  • 3
    Fixed it for me as well. Thanks! Would be nice if the was a way (maybe there is?) to support encryption on the OS X side – Adam Carr Jul 13 '14 at 22:46
  • 37
    simpler just by typing gsettings set org.gnome.Vino require-encryption false for disabling encryption on Ubuntu side – Raffi Sep 23 '15 at 18:49
  • @Raffi - brilliant. you should add that as an answer. works perfectly. – Eaten by a Grue Sep 30 '15 at 02:42
  • 4
    Even after disabling "Require Encryption" and rebooting my Debian machine, I can't get OS X El Capitan to connect. Screen Sharing just hangs after asking for my password of vnc://192.168.X.Y:5900. The app Chicken of the VNC does work, though. – jamshid Dec 09 '15 at 02:44
  • @Raffi that should be an answer, I wasn't able to use dconf-Editor as I don't have a mouse. The terminal approach was a lot easier :) – Stephen Coe Jun 10 '16 at 13:12
  • 1
    This advice is still current at the time of writing this, thank you! A couple of additional discoveries, since my connection to the Ubuntu remote was hanging on my host macOS:
    1. In dconf-Editor, I needed to uncheck "prompt-enabled"
    2. I also needed to modify "authentication-methods" to ['vnc'], and in the Desktop Sharing application I needed to set a password.
    – Chris Dec 19 '17 at 00:51
  • 1
    In my case my problem was that I plugged the LAN ethernet into a different port. When screen sharing is enabled in Ubuntu 18.04 it needs to be activated for a specific interface. Setting the 'network-interface' to '' in didn't actually cause it to listen on all interfaces, apparently. – Kyle McDonald Aug 01 '19 at 01:28
  • This did not work for me using MacOS Catalina and Ubuntu 20.04 :( I'm stuck. – Wouter Aug 21 '20 at 08:43
  • @Raffi's answer should be the accepted one. – James Apr 10 '21 at 23:00
  • In Ubuntu 20.04, install dconf-editor, not dconf-tools. – Craig S. Anderson Aug 14 '22 at 00:56
21

From Raffi's comment and LinuxConfig.org. Tested on Ubuntu 18.04 and 20.04.

$ gsettings set org.gnome.Vino require-encryption false

then verify the setting with

$ gsettings list-recursively org.gnome.Vino | grep encrypt

See also How to set up Vino password via command line

  • I want to thank Afriza N. Arief for this answer. It got a production financial system back up and running. Deeply appreciated. – smcracraft Dec 29 '20 at 15:19
  • 1
    So you are running production financial system without encryption now? What can possibly go wrong... – jayarjo May 04 '21 at 10:55
  • @jayarjo - If you are doing screen sharing over a VPN, encryption add little to no security. If not - then yes, it is a bad idea. I wish Ubuntu would talk to Apple and fix this. – Craig S. Anderson Aug 14 '22 at 00:58
  • @CraigS.Anderson If I can route the data to my process before it goes over VPN, not hard to do, I've owned you. – Graham Leggett Sep 03 '22 at 14:17