Created attachment 1771655[details]
Adjusted version of upstream patch for RHEL 8.x
+++ This bug was initially created as a clone of Bug #1425250 +++
Description of problem:
GNOME Shell on Wayland is the default desktop environment in RHEL 8. This environment is currently missing the ability to establish an SSH connection with X forwarding, in order to run graphical applications on a remote system -- even though the RHEL 8 desktop environment includes Xwayland for compatibility with X applications.
This happens because the display server (Mutter) does not generate an xauth file (.Xauthority), which contains a "cookie" that the remote system (X client) needs in order to authenticate itself to the local display server. This message is displayed instead when establishing the SSH connection:
$ ssh -o ForwardX11=yes -o ForwardAgent=yes anotherhost
Warning: No xauth data; using fake authentication data for X11 forwarding.
This was fixed upstream in GNOME 3.34 with the following commit by Hans de Goede (Red Hat, cc'd): https://gitlab.gnome.org/GNOME/mutter/commit/a8984a81c2e887623d69ec9989ae8a5025f7bd47
RHEL 8.x currently uses GNOME 3.32. The commit above requires one small contextual change in order to backport correctly. I have attached the adjusted diff. With this diff applied, I am able to run remote X applications over an SSH connection, in the GNOME Shell on Wayland desktop environment.
Please queue this patch for inclusion.
Comment on attachment 1771655[details]
Adjusted version of upstream patch for RHEL 8.x
We don't really use bugzilla patch reviews for RHEL, but FWIW the backport looks good to me.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: GNOME security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2021:4381