On 6 Nov 2008, at 21:34, Chris Ridd wrote: > On 6 Nov 2008, at 20:34, Nicolas Williams wrote: >> OK, let's try this: >> >> % echo $SSH_AUTH_SOCK >> % echo $SSH_AGENT_PID >> % pgrep ssh-agent >> % ptree 1|while read pid cmd args >> % do >> % pfiles $pid 2>/dev/null |grep $SSH_AUTH_SOCK > /dev/null && echo >> FOUND: $pid $cmd $args >> % done >> >> Is that ssh-agent? > > The only ssh-agent I can see while logged in remotely from home is: > > bash-3.2$ ptree 888 > 821 /usr/sbin/gdm-binary > 822 /usr/sbin/gdm-binary > 872 gnome-session > 888 /usr/bin/ssh-agent /home/cjr/.Xclients-default > > But I have no idea what SSH_AUTH_SOCK and SSH_AGENT_PID are set to in > gnome-terminal. I'll repeat this test back in the office tomorrow.
Now repeating from inside yesterday's GNOME login session I see: SSH_AGENT_PID=888 SSH_AUTH_SOCK=/var/tmp/keyring-ogB1Se/ssh FOUND: 909 /usr/bin/gnome-keyring-daemon 'pgrep ssh-agent' returns 888. 'ssh-add -l' lists the 5 keys I listed yesterday. Cheers, Chris