I have two laptops, one running CentOS 7 and recently installed latest RHEL 8 on another one. The issue is that I am unable to launch any X program from RHEL 8 over ssh -X
but reverse works okay (tried various, xeyes, gnome-terminal, calculator etc) . Let me elaborate
- firewall on both the machines are disabled
- X11Forwarding is set to yes on box the laptops by default (/etc/ssh/sshd_config)
- from CentOs 7,
ssh -X root@rhel8
to login to RHEL 8 box. - from ssh shell,
echo $DISPLAY
showslocalhost:10.0
- from ssh shell, launch
gnome-terminal
. I expected this to be shown on centos laptop display but instead it shows on RHEL 8 laptop itself.
Interestingly, if I do the reverse, login to CentOS 7 from RHEL 8 using `ssh -X' and try to run any program in ssh shell, it is showing on RHEL8 laptop as expected.
Is there anything changed in RHEL8 the way X Forwarding works?