From owner-freebsd-questions@FreeBSD.ORG Thu Aug 3 23:29:44 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B92DC16A4DF for ; Thu, 3 Aug 2006 23:29:44 +0000 (UTC) (envelope-from micahjon@ywave.com) Received: from relay0.av-mx.com (relay0.av-mx.com [137.118.16.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3868743D53 for ; Thu, 3 Aug 2006 23:29:43 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.62] (HELO mx1.av-mx.com) by relay0.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 343290899 for questions@freebsd.org; Thu, 03 Aug 2006 19:29:44 -0400 Received: (qmail 27174 invoked from network); 3 Aug 2006 23:29:42 -0000 Received: from dsl17146.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.104.146) by 0 with SMTP; 3 Aug 2006 23:29:42 -0000 X-CLIENT-IP: 216.227.104.146 X-CLIENT-HOST: dsl17146.ywave.com Message-ID: <44D286E5.80209@ywave.com> Date: Thu, 03 Aug 2006 16:29:41 -0700 From: Micah User-Agent: Thunderbird 1.5.0.5 (X11/20060730) MIME-Version: 1.0 References: <44CFE745.1000206@ywave.com> In-Reply-To: <44CFE745.1000206@ywave.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: [SOLVED] X11+ssh+jail 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, 03 Aug 2006 23:29:44 -0000 Micah wrote: > > I'm having problems trying to get X11 to forward from an ezjail created > jail environment. Here's what happens: > > trisha% ssh -X 10.0.0.1 > ... > test% xclock > X11 connection rejected because of wrong authentication. > X connection to test:10.0 broken (explicit kill or server shutdown). > > I added "X11UseLocalhost no" to sshd_config as suggested on the lists a > while back, but it didn't change anything. > > Host is: > trisha# uname -a > FreeBSD trisha.eidolonworld 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #1: > Sat Jul 15 15:48:17 PDT 2006 > root@trisha.eidolonworld:/usr/obj/usr/src/sys/TRISHA i386 > > Thanks, > Micah Okay, it took me half a day to trip over the solution. The other half a day was spent trying to figure out what that solution actually was. It was a combination of two things (out of the dozen that I tried) that weren't set up correctly. The jailed system must be able to resolve it's own name to an IP address. Since my home network does not have DNS, that meant adding "10.0.0.1 test" to /etc/hosts on the jailed environment. Also, "X11UseLocalhost no" must be set in the jailed sshd_config. Unless *both* of those are set properly, I get the error as mentioned above. HTH, Micah