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

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Jun 4 19:54:45 AEST 2015


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

            Bug ID: 2411
           Summary: ssh-agent flag to print details of existing agent
           Product: Portable OpenSSH
           Version: 6.4p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh-agent
          Assignee: unassigned-bugs at mindrot.org
          Reporter: eda at waniasset.com

When you run ssh-agent it starts and prints its own pid, even if an
agent is already running.  The -k flag can be used to kill the existing
agent, but it would be useful to have a flag (-e for example) which
just prints the details of the existing agent if running (and if there
is no existing agent, starts up as normal).

Then you could always do in the shell

    eval `ssh-agent -e`

and it would make sure an agent was running, starting one if necessary,
but leaving the existing one in place otherwise.

This can of course be done with shell scripting but I think it would be
a useful feature for ssh-agent itself.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list