jimd> Are the X11 forwarding cookie files in /tmp/ssh.... supposed to
jimd> be removed after the SSH session? I am finding more and more of
jimd> them after SSH sessions with X11 forwarding, and they don't seem
jimd> to get removed.
They are removed if the session ends normally, by the remote sshd
closing the socket (serverloop.c:process_input calls fatal_cleanup, and
the routine to unlink the cookie file is on the fatal_cleanup list). But
it won't get deleted if the server dies abnormally, for instance by
SIGTERM. This may be a bug or oversight; it seems as if the SIGTERM
handler should call fatal_cleanup as well.
Perhaps some of your sshd's are dying abnormally? Or perhaps just in a
different way; there might be other exit paths through the code that don't
call fatal_cleanup.
--
Richard Silverman
sl...@shore.net
In article <m1lwvi1...@syrinx.oankali.net>,