Date: Fri, 18 Mar 2005 21:14:47 +0100 From: Emanuel Strobl <emanuel.strobl@gmx.net> To: freebsd-questions@freebsd.org Cc: Owen Steinert <osteinert@gmail.com> Subject: Re: x11 cookie expires after some time Message-ID: <200503182114.52431@harrymail> In-Reply-To: <200411141928.31403.Emanuel.Strobl@gmx.net> References: <200411141928.31403.Emanuel.Strobl@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503182114.52431>