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: X Forwarding via ssh



On 11/7/07, Mark J. Reed <email@hidden> wrote:
> 2. It's possible something in your remote shell config is unsetting
> DISPLAY.  Try this:
>
>    ssh -Y remotehost bash --norc --noprofile -c 'echo $DISPLAY'

Whups; that actually won't get you anything even if it's working due
to quoting issues - $DISPLAY is expanded before sshd has a chance to
set it. Try this instead:

ssh -Y remotehost 'bash --norc --noprofile -c "echo $DISPLAY"  '

note the extra quotes around the whole bash command line.


-- 
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >X Forwarding via ssh (From: "J K" <email@hidden>)
 >Re: X Forwarding via ssh (From: Bill Campbell <email@hidden>)
 >Re: X Forwarding via ssh (From: "J K" <email@hidden>)
 >Re: X Forwarding via ssh (From: Bernard Giroux <email@hidden>)
 >Re: X Forwarding via ssh (From: "J K" <email@hidden>)
 >Re: X Forwarding via ssh (From: "Mark J. Reed" <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.