From owner-freebsd-questions Mon Nov 12 11:38:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-80.dsl.lsan03.pacbell.net [63.207.60.80]) by hub.freebsd.org (Postfix) with ESMTP id F381437B416 for ; Mon, 12 Nov 2001 11:38:44 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B271A66BE2; Mon, 12 Nov 2001 11:38:44 -0800 (PST) Date: Mon, 12 Nov 2001 11:38:44 -0800 From: Kris Kennaway To: freebsd-questions@FreeBSD.ORG Subject: Re: sshd and X11 forwarding? Message-ID: <20011112113844.B28444@xor.obsecurity.org> References: <20011112184052.GD53398@keyslapper.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="8P1HSweYDcXXzwPJ" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011112184052.GD53398@keyslapper.org>; from leblanc+freebsd@keyslapper.org on Mon, Nov 12, 2001 at 01:40:52PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 12, 2001 at 01:40:52PM -0500, Louis LeBlanc wrote: > Hope this isn't too far OT, but I am trying to get X11 forwarding to > work between 2 FreeBSD machines, both running 4.4 RELEASE. >=20 > Both have the following in /etc/ssh/sshd_config: >=20 > StrictModes yes > X11Forwarding yes > X11DisplayOffset 10 > PrintMotd yes > KeepAlive yes >=20 > My understanding of this is that when you execute a prog that requires > an X display, it will forward the windows, transients, etc to the > client box. And the DISPLAY should set to something like :10.0. a) You need to have DISPLAY set before you run ssh, so ssh knows where to forward the X connection to. b) You need to have ssh enable the negotiation of X Forwarding, not just the remote sshd. Kris --8P1HSweYDcXXzwPJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE78CVDWry0BWjoQKURAq/7AJ9YrcemejX53HcPHuu7dZd7jcv9yQCeO4Fl 8yjhf8ZX+qieI9X+ZrUQ6jw= =ZIEf -----END PGP SIGNATURE----- --8P1HSweYDcXXzwPJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message