You are not logged in.

#1 2024-06-20 13:16:31

justasug
Member
Registered: 2014-08-03
Posts: 174

X2X stopped working - authorization required

A few days ago x2x has stopped working, i.e. I cannot connect to the remote computer with it. This is the
error message I am getting:

$ ssh -Y user@host x2x -north -to :0
Authorization required, but no authorization protocol specified

x2x - error: can not open display :0

I can connect to the remote computer without issues with SSH. Only by adding the x2x
part am I getting the error. I haven't changed any configuration files for SSH and there
were no updates for x2x. I have verified that the remote computer is running on X (not Wayland).
The DISPLAY variable on the remote computer is verified to be :0.

I have tried looking online if anyone has a similar issue, but there's nothing x2x related.
Does anyone have an idea how to troubleshoot this?

sshd config on the remote computer:

Port 2202
PubkeyAuthentication yes
AuthorizedKeysFile	.ssh/authorized_keys
PasswordAuthentication no
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
Subsystem	sftp	/usr/lib/ssh/sftp-server

Offline

#2 2024-06-20 13:43:47

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,193
Website

Re: X2X stopped working - authorization required

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-06-20 15:50:20

justasug
Member
Registered: 2014-08-03
Posts: 174

Re: X2X stopped working - authorization required

Is this AUR related? Because I used my own PKGBUILD to create the package. I thought it's more of an X issue, since x2x handles X stuff and belonged in the "Applications & Desktop Environments " category.

Offline

#4 2024-06-20 16:34:29

cryptearth
Member
Registered: 2024-02-03
Posts: 1,859

Re: X2X stopped working - authorization required

moved because x2x isn't in the official arch repos core, extra or mutilib but provided by some 3rd party via aur
the "apps & de" is for official stuff only

Offline

#5 2024-06-21 11:53:13

justasug
Member
Registered: 2014-08-03
Posts: 174

Re: X2X stopped working - authorization required

I have accidentally discovered that using the DISPLAY :10 works, i.e. it's not giving the "authorization failed" message. I have no idea which DISPLAY :10 is. The cursor disappears from my host computer, but it's obviously not appearing on the remote computer (which has DISPLAY=:0 as verified again). As seen below, :10 is the display shown by running xauth list on the remote computer via an ssh session on the host.

This isn't giving me the error:

$ ssh -Y user@host x2x -north -to :10

Any other display, e.g. :2 is giving me this expected error:

$ ssh -Y user@host x2x -north -to :2
x2x - error: can not open display :2

Here is the output of xauth on the remote computer. It looks a bit different than the output on my host:

$ xauth list
wohnzimmer-pc/unix:  MIT-MAGIC-COOKIE-1  9eb92f781bce23ec5f46a38d0c0dff16
#ffff#776f686e7a696d6d65722d7063#:  MIT-MAGIC-COOKIE-1  9eb92f781bce23ec5f46a38d0c0dff16

Here is the xauth output on my host. It has the display :0 set, but the one above doesn't. Could that be a hint? There are also 2 lines.

$ xauth list
masina-l/unix:0 MIT-MAGIC-COOKIE-1 76eb76eb7eb6be776eff

Here is the xauth output of the remote computer while running it via an ssh -Y session on the host:

$ ssh -Y user@remote
$ xauth list
wohnzimmer-pc:10  MIT-MAGIC-COOKIE-1  dbd3a81d84aed418f260e097e9304215
wohnzimmer-pc:10  MIT-MAGIC-COOKIE-1  dbd3a81d84aed418f260e097e9304215
wohnzimmer-pc:10  MIT-MAGIC-COOKIE-1  dbd3a81d84aed418f260e097e9304215
wohnzimmer-pc/unix:10  MIT-MAGIC-COOKIE-1  07d701816f6c2f32231ef365915fd226

Here is the output of the XAUTHORITY environment variable on the remote computer:

$ echo $XAUTHORITY
/run/user/1001/gdm/Xauthority

Last edited by justasug (2024-06-21 12:41:04)

Offline

Board footer

Powered by FluxBB