0

I am trying to remotely set up a x11vnc server on my raspberry (with kali linux on it). I am fighting to understand what I am doing wrong here. I am connecting to the raspberry by ssh -X (not sure the display forwarding is necessary here). My sshd_config has:

X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes

After having set up a root x11vnc password, I start the server with :

sudo x11vnc -ncache 10 -auth guess -nap -forever -loop -repeat -rfbauth /root/.vnc/passwd -rfbport 3390

And I have the following error:

17/01/2022 10:38:50 passing arg to libvncserver: -rfbauth
17/01/2022 10:38:50 passing arg to libvncserver: /root/.vnc/passwd
17/01/2022 10:38:50 passing arg to libvncserver: -rfbport
17/01/2022 10:38:50 passing arg to libvncserver: 3390
17/01/2022 10:38:50 x11vnc version: 0.9.16 lastmod: 2019-01-05  pid: 2519
17/01/2022 10:38:51 -auth guess: failed for display='localhost:10.0'

My env variable is indeed DISPLAY=localhost:10.0 , not sure if it's necessary to set it this way, and I confess I don't what should be this default env variable. If anybody can explain me what I am doing wrong, I'll be so grateful. I fail to understand how X11 display works or even exist when connecting by ssh.

DarkDiamond
  • 923
  • 2
  • 8
  • 16
Johan
  • 1
  • 1

0 Answers0