Re: X over SSH from Linux to OSX
Re: X over SSH from Linux to OSX
- Subject: Re: X over SSH from Linux to OSX
- From: Timothy Knox <email@hidden>
- Date: Sun, 19 May 2013 19:55:58 -0700
Somewhere on Shadow Earth, at Sun, May 19, 2013 at 08:24:49PM -0400, Brandon Allbery wrote:
> On Sun, May 19, 2013 at 4:52 PM, Timothy Knox <email@hidden> wrote:
>
> > SSH into my OS X 10.8.3 at home. However, when I have
> > DISPLAY="localhost:0.0" and SSH -Y mymac.mydomain.com the DISPLAY
> > variable is unset. Obviously, that makes it difficult run X11 commands
> > back to my Linux box. What I am doing wrong?
> >
>
> Did you install XQuartz? 10.8.x does not come with X11 any more. (It has
> stubs which will put up a dialog offering to install XQuartz when run.)
Of course. :-)
> Otherwise, you might not be doing anything wrong; there was a bit of a
> miscommunication between Apple's X11 and SSH maintainers, with the result
> that sshd on 10.8.x can't find xauth without some help. The XQuartz
> installer tries to add that help to sshd_config, but sometimes may fail.
>
> pyanfar:610442 Z$ grep -i xauthl /etc/sshd_config
> # XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
> XAuthLocation /opt/X11/bin/xauth
>
> if sshd can't find xauth at runtime, it will refuse to do X11 forwarding
> because it can't safely authenticate connections.
Nope. I should have mentioned that I already found that, and
double-checked that XQuartz had done the fixup.
So normally, when I "ssh -Y" from one Linux box to another, I might see:
tal$ echo $DISPLAY
localhost:0.0
tal$ ssh -Y fischer
fischer$ echo $DISPLAY
localhost:10.0
So SSH and X11 are collaborating (somehow) to set the DISPLAY variable
correctly. However, when I SSH in to an OSX box, it doesn't get set.
Where am I going wrong?
--
Timothy Knox <mailto:email@hidden>
I like to say that in the old days, if you reinvented the wheel,
you would get your wrist slapped for not reading. But nowadays
people are reinventing the flat tire. I'd personally be happy if
they reinvented the wheel, because at least we'd be moving forward.
-- Alan Kay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden