I am getting an “Authorization required, but no authorization protocol specified” when unsuccessfully trying to connect to a Tumbleweed headless workstation via x11vnc piped through ssh (to locally display the remote Tumbleweed’s KDE display).
I’ve successfully been doing the same identical access method (with commands below) for over a decade with various versions of openSUSE.
Most recent success, using this method, on this identical headless PC, was less than 2 days ago, accessing this same headless PC from a different PC (which is running openSUSE-LEAP-15.2), successfully accessing the x11vnc server running on LEAP-15.3 on this headless PC. Now instead it fails with Tumbleweed installed on the headless PC.
I note the previous success (with LEAP-15.3) displayed locally the KDE desktop from the remote headless PC.
Background: I ‘updated’ the headless PC’s LEAP-15.3 to Tumbleweed yesterday. I can no longer pipe x11vnc via ssh, as I constantly get the noted error (after sending the lengthy ‘ssh’ command which I note below). As best I can determine, XWindow is running on this headless Tumbleweed display (despite it being headless). The “only” thing changed was the update from LEAP-15.3 to Tumbleweed. Here is what I believe to be the salient part in the bash shell after sending the ‘ssh/x11vnc command’:
12/01/2022 13:27:42 XOpenDisplay(":0") failed.
12/01/2022 13:27:42 Trying again with XAUTHLOCALHOSTNAME=localhost ...
Authorization required, but no authorization protocol specified
To confirm LEAP-15.2 not the issue, on my LEAP-15.3 laptop, I also tried/failed to display the remote headless Tumblweed PC’s KDE display, obtaining identical errors.
When the remote PC had LEAP-15.3 (instead of Tumbleweed), this is the command that I used previous to successfully obtain a remote KDE display:
ssh -t -L 5900:localhost:5900 oldcpu@xxx.xxx.x.xxx 'x11vnc -localhost -nolookup -nopw -ncache 10 -noxdamage -display :0'
where xxx.xxx.x.xxx has an IP address that I am not showing here.
and on the same PC to view the KDE display sent via ssh from the headless workstation:
vncviewer encodings "tight copyrect hextile" localhost:0
as noted that worked yesterday, locally showing the remote’s KDE display, when this “Tumbleweed” remote headless PC instead had LEAP-15.3 on it.
My guess is something has changed wrt xauthority between LEAP-15.3 and Tumbleweed, resulting in this techinque that I have been using for more than a decade to no longer function. I suspect this PC being ‘headless’ is not the issue, but rather it is something new in Tumbleweed?
I would like to fix this without switching to a different vnc method, if possible (as my review of openSUSE forum vnc help threads suggests that trying a different vnc app (which I prefer not do do) is the most common suggestion).
I don’t know if I know the correct question to ask … but the one question that comes to my mind is how do I specifify the correct authorisation protocol?
I don’t know if relevant, but as near as I can determine, the KDE Tumbleweed on a headless PC uses ssdm display manager. I note that access to this remote Tumbleweed PC via “ssh -X” works ok and I can run apps on the headless Tumbleweed PC (and display the apps locally).
But I would like to be able to remotely display the full KDE desktop, just like I did a couple of days ago (when it was LEAP-15.3) using x11vnc piped via ssh.
I have surfed a bit on this … and I wonder if this is a Tumbleweed bug that maybe has not been reported ( https://unix.stackexchange.com/questions/641241/every-x11-working-app-run-from-shell-shows-no-protocol-specified ) … or is this just me screwing up ?
.