Re: F27: ssh X forwarding not working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/15/2017 12:16 PM, Richard Shaw wrote:
> On Wed, Nov 15, 2017 at 11:34 AM, Tom Horsley <horsley1953@xxxxxxxxx
> <mailto:horsley1953@xxxxxxxxx>> wrote:
> 
>     On Wed, 15 Nov 2017 10:49:55 -0600
>     Richard Shaw wrote:
> 
>     > Anyone know of any changes in F27 that would cause this?
> 
>     I seem to recall reading that X forwarding doesn't work
>     with wayland. Could that be relevant here?
> 
> 
> Not sure... I did try forwarding from my home desktop to my work laptop
> and it was broken, can't find the display so that looks like my problem.
> I'm not sure what changed. I'm using Xming which hasn't had a new
> release since 2007 and PuTTY which is usually pretty reliable and
> looking at the log there everything looked fine.
> 
> On Wed, Nov 15, 2017 at 11:36 AM, Rick Stevens <ricks@xxxxxxxxxxxxxx
> <mailto:ricks@xxxxxxxxxxxxxx>> wrote:
> 
>     When you log into your wife's computer, do a simple "echo $DISPLAY". You
>     should get something like "localhost:10.0" or something back. If you get
>     nothing, then you should check /etc/ssh/sshd_config (or the files in
>     /etc/ssh/ssh_config.d) on your wife's computer and verify that you have
>     "X11Forwarding yes" set. If not (it's disabled by default), set it and
>     restart sshd on your wife's computer.
> 
> 
> Going to try that for my desktop now at this point. I was accidentally
> changing the settings in ssh_config instead of sshd_config but once I
> took I peak it seems that X11Forwarding is defaulted yes on a fresh F27
> install.

Yes, I just installed F27 on a VM and see that X11Forwarding is enabled
in /etc/ssh/sshd_config and ForwardX11Trusted is enabled in
/etc/ssh/ssh_config.d/05-redhat.conf as well, so I guess that isn't it.

As I mentioned before, do "echo $DISPLAY" after logging in and verify
the variable is set (something like "localhost:10.0") to see if it's
set. Another poster said that perhaps X11 forwarding doesn't work under
Wayland. I don't use Wayland myself so I can't verify it. Accessing
my VM from my desktop (prophead) does work:

	[rick@prophead ~]$ ssh rick@192.168.122.107
	rick@192.168.122.107's password:
	Last login: Wed Nov 15 13:08:37 2017
	[rick@fedora27-virt ~]$ echo $DISPLAY

	[rick@fedora27-virt ~]$ exit
	logout
	Connection to 192.168.122.107 closed.
	[rick@prophead ~]$ ssh -X rick@192.168.122.107
	rick@192.168.122.107's password:
	Last login: Wed Nov 15 13:16:26 2017 from 192.168.122.1
	/usr/bin/xauth:  file /home/rick/.Xauthority does not exist
	[rick@fedora27-virt ~]$ echo $DISPLAY
	localhost:10.0

At that point, I could run "galculator" and the display showed up
locally on prophead. Note the F27 VM is NOT running Wayland:

	[rick@fedora27-virt ~]$ loginctl
	   SESSION        UID USER             SEAT             TTY
	         2       1000 rick             seat0
	         6       1000 rick

	2 sessions listed.
	[rick@fedora27-virt ~]$ loginctl show-session 2
	...
	Type=x11 <<<<<<<---------- Using X11, not Wayland
	...

I'm sure others will have more advice and are probably far smarter than
I.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
- Political Correctness: The insane doctrine that postulates that it -
-     is entirely possible to pick up a turd by the clean end.       -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux