From owner-freebsd-x11@FreeBSD.ORG Sun Nov 28 23:32:23 2004 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E344516A4D1 for ; Sun, 28 Nov 2004 23:32:23 +0000 (GMT) Received: from smtpauth07.mail.atl.earthlink.net (smtpauth07.mail.atl.earthlink.net [209.86.89.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id B466443D5F for ; Sun, 28 Nov 2004 23:32:23 +0000 (GMT) (envelope-from welchsm@earthlink.net) Received: from [66.41.102.215] (helo=NitroPhys.welchsmnet.net) by smtpauth07.mail.atl.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1CYYWl-000361-0i for freebsd-x11@freebsd.org; Sun, 28 Nov 2004 18:32:23 -0500 Received: from NitroPhys.welchsmnet.net (localhost [127.0.0.1]) iASNW0Gr081665 for ; Sun, 28 Nov 2004 17:32:00 -0600 (CST) (envelope-from welchsm@localhost.welchsmnet.net) Received: (from welchsm@localhost) by NitroPhys.welchsmnet.net (8.13.1/8.13.1/Submit) id iASNW0fd081664 for freebsd-x11@freebsd.org; Sun, 28 Nov 2004 17:32:00 -0600 (CST) (envelope-from welchsm) Date: Sun, 28 Nov 2004 17:31:59 -0600 From: Sean Welch To: freebsd-x11@freebsd.org Message-ID: <20041128233159.GA62951@NitroPhys.welchsmnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-ELNK-Trace: 15d86f98c8ef8acad780f4a490ca69563f9fea00a6dd62bce0ef9824678da1ecb0224bc2939ea3d1350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.41.102.215 Subject: Forwarding X connections over ssh under 5.3-RELEASE with Xorg X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2004 23:32:24 -0000 I've been struggling with this over the last week and finally managed to figure out what was happening -- though I don't understand *why* it was happening. I set up sshd_config the same way I did under 5.2.1-RELEASE running an updated version of openssh from ports. That version is the same as that used in the base system for 5.3-RELEASE. When I attempted to run something like xterm across an ssh link I got the following: xterm Xt error: Can't open display: localhost:10.0 What I eventually figured out was that localhost was being resolved to ::1 instead of 127.0.0.1 when I invoked the command. Swapping two lines in my /etc/hosts file fixed this: 127.0.0.1 localhost ::1 localhost I have always had the ::1 line above the 127.0.0.1 line before and it has worked perfectly -- until now. I discovered a while back that the ::1 line was necessary and should be first but I cannot now find my notes about what problem this resolved (it was several OS revisions ago) and I worry that whatever problem it was will now reappear. Has something changed about the way the system resolves addresses now? Or is it just xauth that has changed in some fashion (this is after all the first time I've ever run Xorg instead of XFree86)? Can someone explain what the ::1 line is used for and whether it is safe to leave it secondary in the file? Sean