From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ih5bT-0004fr-7E for garchives@archives.gentoo.org; Sun, 14 Oct 2007 15:42:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9EFUj3T023296; Sun, 14 Oct 2007 15:30:45 GMT Received: from mail.askja.de (mail.askja.de [83.137.103.136]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9EFPmv6017229 for ; Sun, 14 Oct 2007 15:25:49 GMT Received: from xdsl-213-168-110-34.netcologne.de ([213.168.110.34] helo=zone.wonkology.org) by mail.askja.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.67) (envelope-from ) id 1Ih5Lg-0000pR-Jq for gentoo-user@lists.gentoo.org; Sun, 14 Oct 2007 17:25:48 +0200 Received: from weird.wonkology.org (weird.wonkology.org [::ffff:192.168.1.4]) by zone.wonkology.org with esmtp; Sun, 14 Oct 2007 17:25:46 +0200 id 0007046A.471234FA.00000755 From: Alex Schuster Organization: Wonkology 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 User-Agent: KMail/1.9.7 References: <200709272013.34289.wonko@wonkology.org> <1190951968.10646.35.camel@orpheus> <200709280930.15869.wonko@wonkology.org> In-Reply-To: <200709280930.15869.wonko@wonkology.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710141725.44763.wonko@wonkology.org> X-Archives-Salt: 564362c2-47e9-4391-8246-4e84baa01be9 X-Archives-Hash: ff36229add59dfd621c8e87016818099 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