Hacker News new | ask | show | jobs
by pmarreck 1101 days ago
Why do you need to eval it?

$(ssh-agent)

won’t substitute that with the stdout and run that?

1 comments

Because the intended use for "ssh-agent -k" is for eval.

While redirecting to /dev/null will certainly work, the agent is holding sensitive credentials (by design), and confirmation of shutdown has a tangible security benefit.