35

I just bought raspberry pi 3 with Rapbian Jessi with Pixel and I have a Lenovo laptop with Ubuntu 14.04 64 bit on it.

I want to remote connect to it from my laptop. I enabled the VNC server on Raspberry Pi and I tried to connect to it from either Remmina 0.9.99.1, Remote Desktop Viewer, or even Gtk VNC Viewer. In Remmina it gives me the following error:

Unknown authentication scheme from VNC server: 13, 5, 6, 130, 192

I failed to make this work, although I can connect smoothly using SSH. Any ideas how can I make it work as it looks it should be a straight forward thing.

techraf
  • 4,319
  • 10
  • 31
  • 42
aibrahim
  • 757
  • 1
  • 5
  • 8
  • More details regarding this issue-solution on this post: https://raspberrypi.stackexchange.com/questions/68046/black-screen-using-vnc-with-raspbian-lite – ATSiem Sep 04 '17 at 05:11
  • Instruction how to change vncserver configuration to support clients other than RealVNC Viewer: https://www.raspberrypi.org/documentation/remote-access/vnc/ -> Authenticating to VNC Server *Contains information how to set it by config file (without GUI access, required in this answer: https://raspberrypi.stackexchange.com/a/68842/110722). – morfis Oct 31 '19 at 00:52

8 Answers8

19

later I found out another solution to make it work for Remmina 0.9.99.1. You can change the security authentication for the VNC server to be VNC Password instead of Unix password and create an admin user credentials so you can use it in the remote connection as the following:

On VNC Server side on Raspberry Pi 3

Go to the options on the VNC Server on Raspberry Pi 3 and you should have the sudo credentials when you started VNC server

Change the security authentication to VNC Password as shown belowenter image description here

Finally you need to add a user to use it to connect. In my case I created an administrator user (default username was admin)

On Remmina side on Ubnutu

You will create a new connection with the given IP address of the Raspberry Pi on your local network (you should be able to know it using ifconfig) and using the admin user credentials created on VNC server as the following: enter image description here

Please note that It worked with me while encryption was off, as it made some problems mentioned in other posts. I will try to see if it will work with encrypted on or no.

aibrahim
  • 757
  • 1
  • 5
  • 8
  • 1
    Given that this requires turning off encryption I would consider this a non-starter from a security perspective. – Steve Robillard Jun 22 '17 at 13:59
  • 1
    non-starter unless you are using an ssh (encrypted) tunnel and restrict vnc either with a firewall or a network mask of allowed addresses (or both) – Scott Wood Oct 26 '17 at 15:40
  • I always use SSH tunnel and using -localhost (for tightvncserver) and ip mask for realvnc-vnc-server, so no one except me from tunnel can enter. Plus a little 8 lenght password, of course. Same for vps than for rpi. Security is a must, always. – m3nda Mar 30 '18 at 19:20
  • How do you do this from the terminal? (through SSH tunnel) – Elie G. Dec 19 '19 at 01:36
  • Doesn't seem to work. Newly installed Pi 2 Raspbian. – NoBugs Mar 07 '20 at 04:28
  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year. – Ingo Apr 03 '20 at 19:48
  • The proposed solution is still valid, but I additionally had to run sudo raspi-config and set resolution to 1280 x 720 (or 1920 x 1080) to overcome "Cannot currently show the desktop" after successful connection. Also, the newer Remmina didn't ask for the user name, only for password. Though, the default username was pi. Didn't find an option to disable encryption. – Roman Riabenko Feb 13 '22 at 15:03
12

I've just encountered the issue too.

As an alternative to aibrahim's method if you are doing it remotely via ssh, here's my steps to VNC to display :0.

  1. Setup password using sudo vncpasswd -service
  2. Add the following lines to /root/.vnc/config.d/vncserver-x11 as described in RealVNC: Support legacy viewers
    SecurityTypes=VncAuth
    UserPasswdVerifier=VncAuth
    
  3. Start vncserver using command sudo vncserver-x11-serviced

This method allows me to login using Ubuntu's Remmina VNC client.

sebix
  • 105
  • 7
sonofusion82
  • 304
  • 2
  • 5
6

The simplest solution is to install RealVNC Viewer. You can download it from here, and it is available for Linux, MacOS and Windows. The issue is with the encryption schemes used by different VNC servers.

Steve Robillard
  • 34,687
  • 17
  • 103
  • 109
4

The main problem is that the Raspberri Pi runs RealVnc as server. Lots of answers suggest to connect using RealVncViewer. But RealVnc is not really free, it has a free version, and uses special encryption schemes. Probably good ones, but this makes it harder to use other VNC clients.

Steps to find out about this:

  • aptitude search vnc
  • look for installed packages with i in the first column
  • on my PI it showed realvnc

The obvious solution, and I tried this with success, is to remove the RealVNC server from the Pi, and to switch to a 'regular' VNC server like x11vnc. Steps:

  • Go to Preferences, Pi Configuration, Interfaces, and disable VNC
  • In a terminal: sudo aptitude remove realvnc-vnc-server
  • sudo aptitude install x11vnc # or another vnc server
  • start the VNC server with: x11vnc -display :0 (see also man x11vnc)

On your ubuntu pc, you may now connect to the PI with e.g. Remmina

Todo: start the VNC server on the PI in the background

Roland
  • 238
  • 1
  • 6
  • I don't have aptitude on my Raspberry Pi 2. Just saying. – bomben Jan 04 '21 at 17:54
  • @Ben The real un*x guru of course uses apt because (s)he knows all command line options by heart. But for the rest of us, aptitude is just a little easier to use. You will have to install it with something like apt-get install aptitude. It is available on Ubuntu, Raspbian, etc. – Roland Jan 13 '21 at 10:04
3

I found out that with the current authentication on VNC using linux authentication, the only way to make it work is to use the RealVNC viewer settings of VNC viewer on Ubuntu 14.04

all what you need is to download the binary file (or GZ file and un-compress it and then make the file executable and so you can run it.

aibrahim
  • 757
  • 1
  • 5
  • 8
2

I had the same exact problem, after searching through I found that problem was related to authentication and following line helped me to resolve the issue. I forgot which Stack Exchange I found the answer from.

Here are the steps that I took:

  1. Connect to your Raspberry Pi through ssh command.

    ssh pi@your raspberry ip
    

    Then enter your password to your Raspberry Pi.

  2. Start your vncserver on your Raspberry Pi with the following command

    vncserver -Authentication VncAuth :1
    
  3. Go to your Remmina:

    1. Set your protocol to VNC
    2. Enter the IP address from your raspberry pi new desktop this should be in the last line after entering the code in step 2
  4. Put your username and password for Raspberry Pi

  5. If you set up different password for your VNC server you need to add to the prompt.

After this I was able to remote log-in to my Raspberry Pi.

I found bits and pieces of the info on different exchange and had to put it together.

Greenonline
  • 2,740
  • 4
  • 23
  • 36
0

I had a similar problem when trying to connect to Raspbian Buster and the instructions at the link below solved my problem without having to install a new VNC server.

https://gitlab.com/Remmina/Remmina/-/wikis/Problems-and-tweaks/Remmina-VNC-to-Raspbian-Stretch

alexpotato
  • 131
  • 3
0

I read tons of posts about this issue... and they all resulted in connection from my Mac via Remoter to a black screen on the Raspberry Pi.

DISPMANX was the ulimate solution to VNC into the Raspberry Pi running Raspbian Lite.

Here is the summary:

BASIC SETUP - RESULTS IN BLACK SCREEN FOR VNC

SSH Enabled via Raspi-Config on Raspberry Pi Remoter for Mac (VNC + SSH/Terminal Access) SETUP: https://computers.tutsplus.com/tutorials/take-control-of-your-raspberry-pi-using-your-mac-pc-ipad-or-phone--mac-54603

FINAL SETUP - TO ELIMINATE BLACK SCREEN FOR VNC

Desktop GUI for Raspbian Lite needs Additional Setup i.e. DISPMANX SETUP: http://raspmer.blogspot.ca/2015/07/vnc-server-for-raspberry-pi-with.html

START VNC VIA GUI - NOT REMOTE SSH sudo dispmanx_vncserver

CONNECT VIA REMOTER TO IP

ATSiem
  • 111
  • 3
  • More details regarding this issue-solution on this post: https://raspberrypi.stackexchange.com/questions/68046/black-screen-using-vnc-with-raspbian-lite – ATSiem Sep 04 '17 at 05:11