[Bug 2411] ssh-agent flag to print details of existing agent

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jul 28 15:10:13 AEST 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2411

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #1 from Damien Miller <djm at mindrot.org> ---
This can be done by checking the $SSH_AGENT_PID and $SSH_AUTH_SOCK
environment variables already.

E.g. in .bash_profile (or equivalent)

test -z "$SSH_AUTH_SOCK" && eval `ssh-agent`

... and in .bash_logout:

test -z "$SSH_AGENT_PID" || kill $SSH_AGENT_PID

This typically does what the user wants: start and agent if no agent
exists already (e.g. by being forwarded or started by a desktop
session), but only kill an agent that was started within the session.

I don't therefore think it necessary to implement this in ssh-agent
itself.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list