dahlbyk/posh-git — Issue #28: Add a Stop-SshAgent cmdlet
Author: Haacked
Created: 2012-01-26 19:09:31+00:00
State: open

Posh-Git includes a `Start-SshAgent` cmdlet, but no corresponding `Stop-SshAgent` command.

Why would I need one? Well occasionally it seems SSH Agent gets in a state where it's running, but it's not supplying my credentials. So I end up having to supply my pass phrase.

I end up wanting to restart the agent, but I have to go into task manager and kill the process and then run the `Start-SshAgent` command.

I'd prefer to be able to run `Stop-SshAgent` and then start it again. Or perhaps even have a `Restart-SshAgent` command. :)