Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OpenSSH-2.2.1p4 /tmp/ssh files

0 views
Skip to first unread message

ji...@spamnotaccepted.siu.edu

unread,
Jul 31, 2000, 3:00:00 AM7/31/00
to
Are the X11 forwarding cookie files in /tmp/ssh.... supposed to be removed
after the SSH session? I am finding more and more of them after SSH sessions
with X11 forwarding, and they don't seem to get removed.

Richard E. Silverman

unread,
Aug 1, 2000, 3:00:00 AM8/1/00
to
>>>>> "jimd" == jimd <ji...@SPAMNOTACCEPTED.siu.edu> writes:

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

ji...@spamnotaccepted.siu.edu

unread,
Aug 2, 2000, 3:00:00 AM8/2/00
to
Hmmm - the only "abnormal" SSH connection terminations that I can think
of offhand might be via control-C (SIGTERM?). I will do some experimentations
and see if that proves to be the culprit for leaving "session files" behind.

In article <m1lwvi1...@syrinx.oankali.net>,

0 new messages