You are not logged in.
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 :0I 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-serverOffline
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
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
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
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 :10Any 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 :2Here 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 9eb92f781bce23ec5f46a38d0c0dff16Here 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 76eb76eb7eb6be776effHere 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 07d701816f6c2f32231ef365915fd226Here is the output of the XAUTHORITY environment variable on the remote computer:
$ echo $XAUTHORITY
/run/user/1001/gdm/XauthorityLast edited by justasug (2024-06-21 12:41:04)
Offline