Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2008 13:02:36 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Glen Barber <glen.j.barber@gmail.com>
Cc:        stan <stanb@panix.com>, Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: ssh and X11 problem
Message-ID:  <44sko4ql37.fsf@lowell-desk.lan>
In-Reply-To: <1230746298.28408.5.camel@orion> (Glen Barber's message of "Wed\, 31 Dec 2008 12\:58\:18 -0500")
References:  <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> <1230746298.28408.5.camel@orion>

next in thread | previous in thread | raw e-mail | index | archive | help
Glen Barber <glen.j.barber@gmail.com> writes:

> On Wed, 2008-12-31 at 12:54 -0500, stan wrote:
>> On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote:
>> > On Wed, 2008-12-31 at 12:35 -0500, stan wrote:
>> > > I just built a new 7.1 machine, and when I ssh from a Linux box to it I get
>> > > the following errors:
>> > > 
>> > > usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in "remove"
>> > > command
>> > > /usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0" in "add"
>> > > command
>> > > 
>> > > And I cannit get ssh to foward the X protocol. Yes I have added 
>> > > 
>> > > ForwardX11 yes to /etc/ssh/ssh_config
>> > > 
>> > > What am I doing wrong?
>> > > 
>> > 
>> > I assume you have xserver on the FreeBSD box?  Check your display name.
>> > I'm pretty sure it's supposed to be 'hostname:0:0'.
>> > 
>> Perhaps I was not clear. Yes I do have the X server running on the FreeBSD
>> machine, but that should not matter, as I am ssh'ing _from_ the Linux box
>> which does have a working X server on it also, and can ssh to other
>> machines  and get X fowarded corectly.
>> 
>
> You need an xserver to connect *to*, which is why I asked.

No, Stan is right; an X server is only needed on the machine that
actually hosts the display.

The xauth error message are indicating the problem, but I don't
know what they're telling us.  The hostname should probably be
"localhost", and sshd_config is set up to do that by default.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44sko4ql37.fsf>