On Thu, Aug 31, 2000 at 09:33:09PM +0300, Sami Lehtinen wrote:
> Lutz Jaenicke, on August 31. 2000, wrote:
>   : Unfortunately, I didn't find a way to automatically "ssh-agent -k" (kill) the
>   : ssh-agent when logging out, so that ssh-agents are left sitting around
>   : (with a parent process id of 1).
>   : 
>   : Any ideas?
> 
> ssh-agent stores its PID to SSH2_AGENT_PID (in the case of ssh2) or
> SSH_AGENT_PID (ssh1) environment variable. You could find a way to
> either to directly kill it directly with that (kill $SSH2_AGENT_PID)
> or, if the variable isn't there anymore when you're logging out, store
> it to a file during login (echo "$SSH2_AGENT_PID" >
> $HOME/.ssh-agent2.pid) and kill it with that (kill `cat
> $HOME/.ssh-agent2.pid`; rm $HOME/.ssh-agent2.pid).

Thanks. Obviously my question was not precise enough :-)
I actually know how to kill it. I however did not find a place to have it
killed automatically when logging out of CDE. When starting CDE,
$HOME/dtprofile is read, but I couldn't find a script that is executed
on logout to put the kill sequence in (just like the .logout that complements
the .login for [t]csh)...

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153

Reply via email to