Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display exporting from an OS X box



On Sep 30, 2004, at 10:53 AM, Brent Ware wrote:
However, from what I read in the man pages, ssh -X hostname ought to be all that is necessary. Remote display between Macs and linux hasn't been working for me for a while either (it works with local Suns). I don't know whether this is due to something Apple has done or something I had done - I had figured the latter, since it works with the Suns. But I can't open an X window from my G5 to my laptop either. I get an "Error: Can't open display xxx.xxx.xxx.xxx:0"

That sounds like you might be picking up a DISPLAY value from a login/rc file. Normally the DISPLAY set by SSH is of the form "localhost:##" where the ## is a number greater than 10 (this depends on how many other users are connected to the remote system with X forwarding - we have some boxes with 30-40 simultaneous X sessions). You might try a quick grep DISPLAY ~/.* to see if anything is overwriting the value set by SSH. The scripts which we use do something like this:


if [ -z "$DISPLAY" ]; then
	DISPLAY=...
fi


Failing that I'd check the following things:

1) "ForwardX11 yes" is present in /etc/sshd_config or /etc/ssh/sshd_config
2) ForwardX11 no isn't in ~/.ssh/config
3) DISPLAY is set before you run SSH
4) The local DISPLAY is working - e.g. run xdpyinfo and make sure it works before getting another system involved
5) SSH doesn't throw any warnings about the remote system's host-key - OpenSSH will disable X11 and ssh-agent forwarding in this case no matter what you specified on the command-line.


Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Scitech mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/scitech/email@hidden

This email sent to email@hidden

References: 
 >Re: display exporting from an OS X box (From: Brent Ware <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.