From owner-freebsd-questions@freebsd.org Fri Mar 31 18:45:29 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 CDE1AD264C9 for ; Fri, 31 Mar 2017 18:45:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay10.qsc.de (mailrelay10.qsc.de [212.99.163.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4186F170 for ; Fri, 31 Mar 2017 18:45:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay10.qsc.de; Fri, 31 Mar 2017 20:45:19 +0200 Received: from r56.edvax.de (port-92-195-127-117.dynamic.qsc.de [92.195.127.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 452203CC56; Fri, 31 Mar 2017 20:45:18 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v2VIjHgr002692; Fri, 31 Mar 2017 20:45:17 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 31 Mar 2017 20:45:17 +0200 From: Polytropon To: byrnejb@harte-lyne.ca Cc: "James B. Byrne via freebsd-questions" Subject: Re: X11 and ezjails Message-Id: <20170331204517.f30e0f3b.freebsd@edvax.de> In-Reply-To: <7f49f81e25d0eb05aad1af66df49c525.squirrel@webmail.harte-lyne.ca> References: <7f49f81e25d0eb05aad1af66df49c525.squirrel@webmail.harte-lyne.ca> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay10.qsc.de with 194A1683455 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1847 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: Fri, 31 Mar 2017 18:45:29 -0000 On Fri, 31 Mar 2017 13:39:29 -0400, James B. Byrne via freebsd-questions wrote: > 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? Just a very stupid question: You _did_ set $DISPLAY as needed? See "man ssh", section X11 FORWARDING. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...