Remote X over ssh

Bill Campbell linux-sxs
Wed Jan 5 14:32:56 PST 2005


On Wed, Jan 05, 2005, A. Khattri wrote:
>On Wed, 5 Jan 2005, Bill Campbell wrote:
>
>> >> NOTE:  Current versions of openssh require setting
>> >> ``ForwardX11Trusted yes'' in the ssh_config file.
>> >>
>> >
>> >Yes
>> >
>> >I tried xeyes.  I get the "Can't open display :0.0" error.  What value
>> >should I set $DISPLAY to on the remote machine?
>>
>> If you're seeing a DISPLAY=:0.0, it's not being set by the sshd process on
>> the remote machine.  The sshd DISPLAY will be either something like
>> localhost:10.0 or $FQDN.10.0 depending on the setting of the sshd_config
>> ``X11UseLocalhost'' line (Linux seems happy with localhost:xx.0 while some
>> OS's require a real host name).
>
>Maybe you need to restart sshd (scary) or send it a HUP to re-read the
>sshd_config file?

Restarting sshd shouldn't be a problem.  It doesn't kill current sessions.
I've done it hundreds of times without problems.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``If the personal freedoms guaranteed by the Constitution inhibit the
government's ability to govern the people, we should look to limit those
guarantees.''
   -President Bill Clinton, August 12, 1993


More information about the Linux-users mailing list