How to Remote Access to Ubuntu 16.04 from Windows

July 4, 2016

Remote Access Ubuntu 16.04

This tutorial is going to show beginners how to easily setup a VNC server in Ubuntu 16.04 so to connect from remote machines.

1.) Ubuntu desktop provides vino VNC server out-of-the-box with a simple UI called Desktop Sharing.

Desktop Sharing

2.) After launching the utility, you can easily enable VNC server in Ubuntu by checking the boxes that says:

  • Allow other users to view your desktop
  • Allow other users to control your desktop (Optional)

Enable Vino VNC server

For security options:

  • If you want to be able to choose whether to allow someone to access your desktop, enable the first box.
  • To require other people to type a password when connecting to your desktop, enable the second one and set a password.
  • If your router supports UPnP and it’s enabled, you can allow people not in local network to connect by selecting “Automatically configure UPnP router to open and forward ports”

After setting up the VNC server, just close the utility.

3.) Disable encryption.

Due to this bug, the common used TigerVNC, TightVNC viewer does not support vino’s security type. You’ll get the error below when you try to connect:

security-notsupported

A workaround is to disable encryption requirement. To do so, install dconf Editor from Ubuntu Software (or via sudo apt install dconf-editor command in terminal), and launch it.

When it opens, navigate to org -> gnome -> desktop -> remote-access, and uncheck the value of “require-encryption” in right.

vino disable encryption

Finally connect to this desktop on remote machine by typing the IP and password using a VNC client!

I'm a freelance blogger who started using Ubuntu 5+ years ago and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me on Google Plus or email to ubuntuhandbook1@gmail.com

10 responses to How to Remote Access to Ubuntu 16.04 from Windows

  1. So, after enabling, a “helper” can just use a VNC viewer to access remote Ubuntu with listener IP ?
    Nice :)
    Good alternative to TeamViewer or Epoptes ;)

  2. Hi,
    Thanks for the post.
    However, I keep getting “authentication failure” on TightVNC on Windows 7 after I enter the remote password.
    What could be wrong?

  3. Thank you! Worked prefect on the first try! My other attempts at vnc screwed up my Ubuntu 16.04 so much I had to re-install it.

    • Which VNC viewer on your Windows machine did you use? Did you need to install a vnc server on the Ubuntu 16.04 machine (or is it already running by default on 16.04)?

  4. Hi, I followed all the steps but after installed the dconf Editor, I neither could uncheck the “require ecryption” item just because the dialogue box that appeared was empty for the “name” and “value” columns. I want to acces to my Ubuntu 16.04 desktop form my home PC with windows 10 home and a ubuntu virtual box. What can I do for to work as well?

    Thank you!

  5. thanks for the post.
    and for those of you that couldn’t get it by this way.
    just use the command line

    “sudo gsettings set org.gnome.Vino remote-access false”

    and then restart your machine

  6. This works great – although if the server reboots, it appears I have to login to to the console before it is available. Any way to have this available automatically after a reboot? Thank you!

  7. After disable the “require-encryption”, I can connect from windows to ubuntu by VNC, but get a empty desktop, cannot do anything on it. What’s the problem and how to solve it?

  8. Thanks for this tutorial!
    It was working great for 2-3 months, but now I get constantly the following error message:
    “No connection could be made because the target machine actively refused it”
    I did not change anything since it was working :(
    Dou you have any idea what could be the problem?