public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] SSH: No X11 forwarding any longer
Date: Sun, 14 Oct 2007 17:25:44 +0200	[thread overview]
Message-ID: <200710141725.44763.wonko@wonkology.org> (raw)
In-Reply-To: <200709280930.15869.wonko@wonkology.org>

I wrote:

> Yes. Well, I usually have forwarding enabled automatically
> in /etc/ssh/ssh_config, but I always try with -X or -Y anyway.
>
> > What is the actual error from the client?
>
> $DISPLAY is not set.
>
> But I notice a change since yesterday: I now get this warning:
> Warning: No xauth data; using fake authentication data for X11
> forwarding.
>
> Don't know what causes this, I emerged a couple of things due to world
> update and (still!) some problems with the expat update, but nothing
> which I would think has to do with ssh. Anyway, DISPLAY still does not
> get set.

I sort of found the solution to my problem, but still do not fully 
understand what happened. First I thought I had to add X to the server's 
use flags. Looked like I then had DISPLAY set, but still got the warning 
about missing xauth data. When trying to start an X application, I got 
this:

  Xlib: connection to "localhost:10.0" refused by server
  Xlib: Invalid MIT-MAGIC-COOKIE-1 key
  xterm Xt error: Can't open display: localhost:10.0

Then I looked at the configs again, and in the man page for ssh_config I 
finally found this:
     XAuthLocation
             Specifies the full pathname of the xauth(1) program.  The
             default is /usr/openwin/bin/xauth.

/usr/openwin? I added "XAuthLocation /usr/bin/xauth" to the 
client's /etc/ssh/ssh_config, and now all was fine. Even without the X use 
flag.

Looking at a gentoo box I did not update for a while, I see the man page 
there tells the default location is /usr/bin/xauth. Okay, now I know this 
change is responsible. But why aren't forum and this list flooded with 
people experiencing the same problem as me?

	Alex
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2007-10-14 15:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-27 18:13 [gentoo-user] SSH: No X11 forwarding any longer Alex Schuster
2007-09-28  3:59 ` Iain Buchanan
2007-09-28  7:30   ` Alex Schuster
2007-10-14 15:25     ` Alex Schuster [this message]
2007-10-14 21:45       ` Mick
2007-10-20  4:33         ` Alex Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200710141725.44763.wonko@wonkology.org \
    --to=wonko@wonkology.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox