Created
August 30, 2015 10:57
-
-
Save versedi/a378513271ad01e4b7f3 to your computer and use it in GitHub Desktop.
Kill all ssh-agents Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
taskkill /F /IM ssh-agent.exe /T |
Hello all.
I have just figured out a way to stop services without Admin right :D.
Read here: http://woshub.com/set-permissions-on-windows-service/
So you guy just using the net stop
command to stop ssh-agent service without Admin right or using taskkill
.
Greeting.
It's worth noting that when using Git Bash, you have to do taskkill -F //IM ssh-agent.exe //T
instead of taskkill /F /IM ssh-agent.exe /T
Another way to do that is to open 'Task Manager (Ctrl + Alt + Delete)', find ssh-agent and end process.
Thank you so much!!!!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I can end the
ssh-agent.exe
process using Task Manager. But I want to using command lines for convenient.For example:
My Windows OpenSSH Authentication Agent service was set to Manual
Open command prompt and type:
ssh-agent
## start ssh-agent servicessh user@host
## connect to server hostssh-agent -k
## want to stop ssh-agent service here but it doesn't worktaskkill /F /IM ssh-agent.exe /T
## error access is denied hereI don't want to open Command Prompt as Admin just for doing SSH connect to server.