From owner-freebsd-questions@FreeBSD.ORG Thu Jul 12 01:47:19 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76F6416A41F for ; Thu, 12 Jul 2007 01:47:19 +0000 (UTC) (envelope-from lists-fbsd@shadypond.com) Received: from mx-outbound01.easydns.com (mailout.easydns.com [205.210.42.54]) by mx1.freebsd.org (Postfix) with ESMTP id 41A1413C4C2 for ; Thu, 12 Jul 2007 01:47:19 +0000 (UTC) (envelope-from lists-fbsd@shadypond.com) Received: from lilypad.shadypond.com (69-12-173-117.static.humboldt1.com [69.12.173.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx-outbound01.easydns.com (Postfix) with ESMTP id 265E07F8B for ; Wed, 11 Jul 2007 21:47:16 -0400 (EDT) Received: from ripple.shadypond.com (ripple.shadypond.com [192.168.1.13]) by lilypad.shadypond.com (postoffice) with ESMTP id 5540DFA9CF for ; Thu, 12 Jul 2007 01:47:16 +0000 (UTC) From: Pollywog To: freebsd-questions@freebsd.org Date: Thu, 12 Jul 2007 01:47:11 +0000 References: <200707090103.49950.lists-fbsd@shadypond.com> <200707101441.01594.lists-fbsd@shadypond.com> <20070711231742.GA49781@pcjas.obspm.fr> In-Reply-To: <20070711231742.GA49781@pcjas.obspm.fr> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200707120147.11624.lists-fbsd@shadypond.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data? [SOLVED] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 01:47:19 -0000 On Wednesday 11 July 2007 23:17:42 Albert Shih wrote: > Le 10/07/2007 =E0 14:41:01-0700, Pollywog a =E9crit > > > On Sunday 08 July 2007 18:03:49 Pollywog wrote: > > > I am having some problems with X11 forwarding. I can do X11 forwarding > > > via ssh between two machines running Linux, but if I try to do this > > > from FreeBSD (KDE) to either of the Linux machines, it only works if I > > > use startx to start KDE on the fbsd machine (a laptop). If I start KDE > > > from kdm, I get errors that go like this when I start the KDE app on > > > the remote host running Linux: pollywog@slider:~$ kate > > > Xlib: connection to "localhost:11.0" refused by server > > > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > > > kate: cannot connect to X server localhost:11.0 > > > > I just did 'ssh' to one of the Linux hosts and when the connection was > > made, I got this: > > > > Warning: No xauth data; using fake authentication data for X11 > > forwarding. > > > > Does this possibly have something to do with the problem I mentioned in > > my initial post in this thread? I am going to Google that error and see > > if I can find something. > > Check where is the xauth app on the Linux box, and make > > strings sshd|grep xauth > > to check if it's the same path. > > If don't you need to fix this with > > XAuthLocation > > in your sshd_config file on the Linux box I tried that and it did not solve the problem, but you gave me an idea and = it=20 worked. I put 'XAuthLocation ' in my ~/.ssh/config on the FreeBSD box= =20 and that fixed the problem for both Linux boxes; I can connect to either of= =20 them and run X apps. I believe that if I do the same thing on each of the Linux boxes, I should = be=20 able to connect to the FreeBSD host and run X apps. Also, instead of each user having to do the above modification, I will=20 put 'XAuthLocation' in /etc/ssh/ssh_config (instead of sshd_config) globall= y=20 and that should take care of this issue. thank you for your help