Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Stop-SshAgent cmdlet #28

Closed
haacked opened this issue Jan 26, 2012 · 4 comments
Closed

Add a Stop-SshAgent cmdlet #28

haacked opened this issue Jan 26, 2012 · 4 comments

Comments

@haacked
Copy link
Contributor

haacked commented Jan 26, 2012

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. :)

@dahlbyk
Copy link
Owner

dahlbyk commented Jan 26, 2012

Could Start-SshAgent always kill existing agents first?

@haacked
Copy link
Contributor Author

haacked commented Jan 27, 2012

Well if the agent is running fine, I wouldn't want that to kill it because then I would have to enter my password again. For example, if I close my console, re-open it, my profile will attempt to start-sshagent, but if it's running, it might all be fine. Right?

@dahlbyk
Copy link
Owner

dahlbyk commented Jan 27, 2012

On closer inspection, Stop-SshAgent already exists, contributed by @markembling: e212dfd

@dahlbyk
Copy link
Owner

dahlbyk commented Apr 8, 2012

Closing this - please reopen if the existing Stop-SshAgent is not sufficient.

@dahlbyk dahlbyk closed this as completed Apr 8, 2012
lei-yu-wdfc pushed a commit to lei-yu-wdfc/posh-git that referenced this issue Aug 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants