From owner-freebsd-questions@FreeBSD.ORG Fri Mar 18 20:14:56 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D08316A4CE for ; Fri, 18 Mar 2005 20:14:56 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 200F943D3F for ; Fri, 18 Mar 2005 20:14:55 +0000 (GMT) (envelope-from emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 18 Mar 2005 20:14:54 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp020) with SMTP; 18 Mar 2005 21:14:54 +0100 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org Date: Fri, 18 Mar 2005 21:14:47 +0100 User-Agent: KMail/1.7.2 References: <200411141928.31403.Emanuel.Strobl@gmx.net> In-Reply-To: <200411141928.31403.Emanuel.Strobl@gmx.net> X-Birthday: 10/06/72 X-CelPhone: +49 173 9967781 X-Tel: +49 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2685912.fdSFMgdiVD"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503182114.52431@harrymail> X-Y-GMX-Trusted: 0 cc: Paul Brooks cc: Owen Steinert Subject: Re: x11 cookie expires after some time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 20:14:56 -0000 --nextPart2685912.fdSFMgdiVD Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Sonntag, 14. November 2004 19:28 schrieb Emanuel Strobl: > Dear all, > > perhaps someone can explain me why I can't execute a x-program via a ssh > session after some time (some hours). When I log into the machine > everything is fine and xclock or any other x11 application is working fin= e. > But after some hours, when I try to execute exactly the same application > once again, I get the following error: > Xlib: connection to "localhost:10.0" refused by server > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > Xlib: connection to "localhost:10.0" refused by server > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > Lost the connection to the X server > > The session wasn't interrupted nor did I modify anything else, just the s= sh > session has idled for some hours. > > I have to admit that I'm not really familar with the .Xauthority stuff, b= ut > it works for the first hour, so why not as long as the ssh session exists? > Here's some off-list communication, Paul Brooks told me that it's=20 =46orwardX11Trusted in ssh config. Thanks a lot! Am Freitag, 18. M=E4rz 2005 20:35 schrieb Paul Brooks: > On Tue, Mar 08, 2005 at 12:59:49AM +0100, Emanuel Strobl wrote: > > Hmmm, I really can't remember what I did (if I did anything at all) but= I > > don't have this problem anymore. I'm sure I read something about the > > cookie timeout, and played with xauth, but unfortunately haven't > > bookmarked anything. > > Sorry, I can't help you, perhaps there were modifications in RELENG_5 b= ut > > I don't believe that, just to note that I'm running 5.4-PRE now. > > > > I had a quick look at several config files and also couldn't find > > anything special, just that I added (uncommented) "ForwardAgent yes" > > in /etc/ssh/ssh_config. > > If that's the solution, please drop me a note. > > Just a quick follow-up -- turns out ssh appears to have been the issue. = It > wasn't ForwardAgent, but ForwardX11Trusted that appears to have fixed the > issue for 5.3 release. =2DHarry --nextPart2685912.fdSFMgdiVD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCOza8Bylq0S4AzzwRAn6rAJ9GtUyuP+Hd4LwZ7lIEl9GymJx/zQCeJWX9 22V9qx+pqy3cbJJRANWrvUY= =s65F -----END PGP SIGNATURE----- --nextPart2685912.fdSFMgdiVD--