[CentOS] ssh-agent

Tue Apr 6 16:06:08 UTC 2010
Les Mikesell <lesmikesell at gmail.com>

On 4/6/2010 10:46 AM, m.roth at 5-cent.us wrote:
> Todd wrote:
>> m.roth at 5-cent.us wrote, On 04/06/2010 10:51 AM:
>>> What I was doing: log onto my machine (system run level 5, I log out,
>>> NOT just lock the screen, every single night; therefore, there should be
>>> no processes running owned by me), and in a terminal window, do
>>>     ssh-agent
>>>     ssh-add .ssh/private key
>>> and enter my passphrase. Then I'd go through the day merrily on my way.
>>>
>>> Now, I find that when I log out, ssh-agent IS NOT STOPPED, even though I
>>> am logged all the way out. When I log out, unless I background
>>> something, everything running as me should go away. Everything.
> <snip>
>> question:
>> if you don't start ssh-agent in your terminal do you see something like
>> the following with ps?
>>
>> ~$ ps aux |grep agent
>> uname 12345  0.0  0.1   8916  3608 ?        Ss   09:12   0:00
>> /usr/bin/ssh-agent /bin/sh -c exec -l
>> /bin/bash -c "/usr/bin/dbus-launch --exit-with-session
>> /etc/X11/xinit/Xclients"
>
> Yep -
> ps -fu<mylogin>  | grep ssh
> <mylogin>    13313     1  0 Apr02 ?        00:00:00 ssh-agent
> <mylogin>    18049 18019  0 09:09 ?        00:00:00 /usr/bin/ssh-agent
> /bin/sh -c exec -l /bin/bash -c "/usr/bin/dbus-launch --exit-with-session
> /etc/X11/xinit/Xclients"
> <snip>
> 9:09 or so was when I used ssh-add. Note that ssh-agent has been running
> since the second, and I logged out Friday and yesterday.

So you have 2 different instances running?

-- 
   Les Mikesell
    lesmikesell at gmail.com