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 fine.
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 ssh
session has idled for some hours.
I have to admit that I'm not really familar with the .Xauthority stuff, but
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
ForwardX11Trusted in ssh config.
Thanks a lot!
Am Freitag, 18. März 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 but
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.
-Harry
pgpXERPyNhmLc.pgp
Description: PGP signature