From owner-freebsd-questions@freebsd.org Sat Apr 1 09:15:52 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02F6FD2613E for ; Sat, 1 Apr 2017 09:15:52 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BB3E28D2 for ; Sat, 1 Apr 2017 09:15:51 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de [172.20.26.243]) by mailout09.t-online.de (Postfix) with SMTP id 08CEF4254284; Sat, 1 Apr 2017 11:15:42 +0200 (CEST) Received: from esprimo.local (TWcEO-ZVZhNOKNR6U52Q8PKf5rjNUZQuP6r3LSIzDKVUD65OtZr3uo96ROAg8Skwtd@[217.81.142.12]) by fwd16.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1cuF8F-2COG000; Sat, 1 Apr 2017 11:15:39 +0200 Received: from esprimo.local (localhost [127.0.0.1]) by esprimo.local (Postfix) with ESMTP id 6673A11A0C5; Sat, 1 Apr 2017 11:15:35 +0200 (CEST) Received: (from chris@localhost) by esprimo.local (8.15.2/8.15.2/Submit) id v319FXsu048567; Sat, 1 Apr 2017 11:15:33 +0200 (CEST) (envelope-from chris) Date: Sat, 1 Apr 2017 11:15:33 +0200 From: Christoph Brinkhaus To: freebsd-questions@freebsd.org Cc: byrnejb@harte-lyne.ca Subject: Re: X11 and ezjails Message-ID: <20170401091533.GA2495@esprimo.local> References: <7f49f81e25d0eb05aad1af66df49c525.squirrel@webmail.harte-lyne.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f49f81e25d0eb05aad1af66df49c525.squirrel@webmail.harte-lyne.ca> User-Agent: Mutt/1.8.0 (2017-02-23) X-ID: TWcEO-ZVZhNOKNR6U52Q8PKf5rjNUZQuP6r3LSIzDKVUD65OtZr3uo96ROAg8Skwtd X-TOI-MSGID: a716a2b9-5c16-4cea-a63f-fbf06204879a X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 09:15:52 -0000 On Fri, Mar 31, 2017 at 01:39:29PM -0400, James B. Byrne via freebsd-questions wrote: Dear James, > FreeBSD-11.0 > > I would like to run gvim in an X11 window over ssh to a jailed > instance created with ezjail. I have set sshd_config in the jail to > allow X11Forwarding and I am connecting with 'ssh -Y jail.domain.tld' > > However, when I log into the jail and run gvim then I see this: > > # gvim > X11 connection rejected because of wrong authentication. > E233: cannot open display > Press ENTER or type command to continue > > E852: The child process failed to start the GUI > X11 connection rejected because of wrong authentication. > > > I have run into this before and have attempted to apply all of the > previous remedies but nothing seems to work. Is there anything about > jails themselves that would prevent X11 forwarding? > > Has anyone accomplished what I am trying to do? If so then how was it > done? Please have a look at https://forums.freebsd.org/threads/53362/ It works with ezjail as well. Kind regards, Christoph