From owner-freebsd-questions@FreeBSD.ORG Wed Nov 12 01:33:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90E491065672 for ; Wed, 12 Nov 2008 01:33:58 +0000 (UTC) (envelope-from lists-fbsd@shadypond.com) Received: from mailout.easydns.com (mailout.easydns.com [205.210.42.66]) by mx1.freebsd.org (Postfix) with ESMTP id 492898FC1E for ; Wed, 12 Nov 2008 01:33:58 +0000 (UTC) (envelope-from lists-fbsd@shadypond.com) Received: from localhost (localhost [127.0.0.1]) by mailout.easydns.com (Postfix) with ESMTP id E70F8480EA for ; Tue, 11 Nov 2008 20:33:44 -0500 (EST) Received: from mailout.easydns.com ([127.0.0.1]) by localhost (mx-outbound01.easydns.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ehkYprT5DWLo for ; Tue, 11 Nov 2008 20:33:44 -0500 (EST) Received: from lilypad.shadypond.com (69-12-173-117.static.humboldt1.com [69.12.173.117]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout.easydns.com (Postfix) with ESMTP id B7E3E48085 for ; Tue, 11 Nov 2008 20:33:44 -0500 (EST) Received: from slider.localnet (slider.shadypond.com [192.168.1.11]) by lilypad.shadypond.com (Postfix) with ESMTPSA id 56D4A13190 for ; Tue, 11 Nov 2008 23:39:20 +0000 (UTC) From: Pollywog To: freebsd-questions@freebsd.org Date: Tue, 11 Nov 2008 23:39:16 +0000 References: <343030.25718.qm@web90501.mail.mud.yahoo.com> In-Reply-To: <343030.25718.qm@web90501.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811112339.17651.lists-fbsd@shadypond.com> Subject: Re: xauth failure when tunneling over ssh 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: Wed, 12 Nov 2008 01:33:58 -0000 On Tuesday 11 November 2008 21:27:38 Elliot Isaacson wrote: > Hi, > > I've set up X11Forwarding on several linux servers before, but I've > just wasted a day trying (unsuccessfully) to figure out why I can't > get it working on freebsd (7.0-RELEASE GENERIC). > > I have not changed the defaults in the sshd_config file. > > One the client computer: > > $ xhost + > > $ ssh -Y 192.ip.of.server > Warning: No xauth data; using fake authentication data for X11 > forwarding. > > /usr/local/bin/xauth: creating new authority > file /home/xxx/.Xauthority > /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 > > [xxx@ ~] kcalc > X11 connection rejected because of wrong authentication. > kcalc: Fatal IO error: client killed > > [xxx@ ~] ls -a .Xauth* > > > Now, when I go to the server and login directly, and do a startx, > the x server starts fine, but there's still no .Xauthority file in > the home directory. I find that odd. > > This also looks strange to me: > > [xxx@ ~] ps -aux | grep X > root 1470 0.0 2.7 65456 13668 v0 S 4:01PM 0:01.24 > X :0 -auth /home/xxx/.serverauth.1451 (Xorg) > > [xxx@ ~] ls -a /home/xxx/.serverauth* > > > How could it authenticate with a non-existent file? > > Any pointers in the right direction would be greatly appreciated. I had the same problem when trying to SSH to the FreeBSD machines from Linux. If I remember correctly, I had to make a change to ssh_config on the Linux side to get things to work: Host * XAuthLocation /usr/bin/xauth It might also help if you would post sshd_config on the FreeBSD side.