I am trying to figure out how to forward X11 over ssh without using -Y. Both systems run the latest version of stock arch linux with the yay aur helper. The server runs xorg with KDE plasma and the client runs xorg with i3wm, neither run wayland.
Both the client and server have extra/xorg-xauth installed. The ssh server runs sddm while the ssh client runs lightdm When I run ssh user@ip -X it complains that the client does not have a ~/.Xauthority file present. This is because sddm sets the file in /tmp/xauth_XXX where XXX changes every boot. $XAUTHORITY it set to the correct path to the file yet ssh (or sshd) ignores this value in favor of the lightdm ~/.Xauthority. How do I force ssh to use the file pointed to by $XAUTHORITY.
According to xauth(1)
By default, xauth will use the file specified by the XAUTHORITY environment variable or .Xauthority in the user's home directory.
Meaning that $XAUTHORITY should be recognized properly
I do have access to root on both client and server for configuration.