How can I get X11 forwarding to work with XWayland?

0
2
Asked By CuriousCoyote42 On

I'm having a tough time getting X11 forwarding to work when trying to connect from a Solaris 10 machine to a RHEL 10 system that runs on Wayland with XWayland. I'm using SSH with export DISPLAY, but I'm not having any luck. The server, which has a default GNOME desktop, runs Xwayland with some specific arguments, and I'm unsure about the display setting being `:1024` when my `$DISPLAY` shows `:0`. Here are some of the steps I've already tried on the server: I've enabled X11 forwarding in both ssh_config and sshd_config, tried the `ssh -X` and `-Y` options, used `xhost +`, added the machine's IP and domain to `X0.hosts`, and even disabled the firewall. However, when I go to run a graphical app with `DISPLAY=server:0`, the stuff just hangs, and if the firewall is off, I get an error about not being able to open the display. I've verified that X11 forwarding works with a Debian 9 host, so I think the issue is related to something with the RHEL 10 setup or Wayland itself. I'm starting to wonder if what I'm trying to achieve is even possible, even though I've seen others mention that it can work. Any help from those familiar with Wayland and RHEL would be really appreciated!

1 Answer

Answered By TechSavvyPenguin On

X11 forwarding usually doesn’t require you to set any X11 remote configuration manually. You should just need to log in using `ssh -X` or `ssh -Y`, and it should automatically handle the DISPLAY variable for you. From my experience, this setup works well, even with Wayland in the mix. Just give it a shot without messing with the DISPLAY variable!

WittyOtter89 -

I get that, but I found that I can `ssh -X` into my Wayland server and pull up an xterm, but going the other way doesn’t work for me. I can’t get it to render on my Wayland desktop when I try to connect out.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.