bugzilla-daemon at mindrot.org
2015-Jun-04 09:54 UTC
[Bug 2411] New: ssh-agent flag to print details of existing agent
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.
bugzilla-daemon at bugzilla.mindrot.org
2017-Jul-28 05:10 UTC
[Bug 2411] ssh-agent flag to print details of existing agent
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.
bugzilla-daemon at mindrot.org
2021-Apr-23 04:58 UTC
[Bug 2411] ssh-agent flag to print details of existing agent
https://bugzilla.mindrot.org/show_bug.cgi?id=2411 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Damien Miller <djm at mindrot.org> --- closing resolved bugs as of 8.6p1 release -- 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.