From owner-freebsd-questions@FreeBSD.ORG Tue Jul 12 06:22:59 2011 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 356C41065672 for ; Tue, 12 Jul 2011 06:22:59 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from asmtp1.iomartmail.com (asmtp1.iomartmail.com [62.128.201.248]) by mx1.freebsd.org (Postfix) with ESMTP id BC5778FC14 for ; Tue, 12 Jul 2011 06:22:58 +0000 (UTC) Received: from asmtp1.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp1.iomartmail.com (8.13.8/8.13.8) with ESMTP id p6C6Mu71025626; Tue, 12 Jul 2011 07:22:56 +0100 Received: from orange.esperance-linux.co.uk (80-45-152-196.static.dsl.as9105.com [80.45.152.196]) (authenticated bits=0) by asmtp1.iomartmail.com (8.13.8/8.13.8) with ESMTP id p6C6Mt5t025617; Tue, 12 Jul 2011 07:22:56 +0100 Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 8CD0933C1F; Tue, 12 Jul 2011 07:22:55 +0100 (BST) Date: Tue, 12 Jul 2011 07:22:55 +0100 From: Frank Shute To: perryh@pluto.rain.com Message-ID: <20110712062255.GA45128@orange.esperance-linux.co.uk> References: <4e1c1f5f.LsZHLb8pZocKlPVV%perryh@pluto.rain.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <4e1c1f5f.LsZHLb8pZocKlPVV%perryh@pluto.rain.com> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.2-STABLE amd64 X-Organisation: 'shute.org.uk' Cc: freebsd-questions@freebsd.org Subject: Re: ssh -X (X11 forwarding) not working from 6.1 to 8.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2011 06:22:59 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 12, 2011 at 03:18:07AM -0700, perryh@pluto.rain.com wrote: > > DISPLAY is not getting set in a remote shell started by "ssh -X". >=20 > $ echo $DISPLAY > :0.0 > $ ssh -X [server] 'echo DISPLAY=3D%$DISPLAY%' > DISPLAY=3D%% >=20 > How would I go about debugging this? >=20 > DISPLAY _is_ set correctly on the ssh client -- I am running in > an xterm there, and can successfully start another (local) one -- > and the word DISPLAY is not present in any of the shell startup > files (.bash*, .cshrc, .login, .profile, .shrc) on either the > ssh client or the ssh server. >=20 > The ssh client is FreeBSD 6.1 and the ssh server is FreeBSD 8.1. >=20 > It does work correctly in the other direction (using the 8.1 system > as the ssh client and the 6.1 system as the ssh server), and I can > run X11 programs on the 8.1 system, displaying on the 6.1 system, > provided I set DISPLAY appropriately on the 8.1 system. It's only > the ssh X11 forwarding that's broken, and only in one direction. Have you tried putting: DISPLAY=3D:0.0 in ~/.ssh/environment on the machine that's not setting DISPLAY properly? Regards, --=20 Frank Contact info: http://www.shute.org.uk/misc/contact.html --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk4b6D4ACgkQHduKvUAgeK6i2gCffjPmPd4MLlqJ03oF+1vabxK/ dk8AnA/5u+qlSt7epbOIvobLOdHHYKGm =Kwx2 -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--