Hi,
> I now have his PC with me on my local network, and commands executed through ssh -X still display on his screen instead of mine.
>
> From his gnome-terminal on my PC:
> [gary@fedora ~]$ echo $DISPLAY
> localhost:10.0
>
> How do I set the display for commands executed remotely to appear on my screen?
>
What is the value of DISPLAY when you ssh into the system?
Is there code in .bash_profile or .bashrc (assuming bash shell is used)
that sets DISPLAY? If so that will break X11 forwarding.
The above IS the value of DISPLAY on the remote system (simply called "fedora", as that is the default).
There's nothing in bashrc/bash_profile that is changing any values.
I also recall reading something about fedora recently changing how X11 forwarding works? Do you perhaps know anything about that?
Perhaps it's related to X11Forwarding options in /etc/ssh somewhere?
In fact, it appears it's changed quite a bit over the years. Here's a comment from fedora35 about it being related to X11UseLocalhost:
https://discussion.fedoraproject.org/t/fedora35-x11-forwarding/78722/2
https://discussion.fedoraproject.org/t/fedora35-x11-forwarding/78722/2
I also noticed that if I comment out X11Forwarding in /etc/ssh/sshd_config.d/50-redhat.conf and restart sshd, the next time I login, it does indeed complain about "X11 forwarding request failed on channel 0"
Thanks,
Alex
-- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue