Use SSH keys from CMD, PowerShell, etc. on Windows
If you want to use
ssh with SSH keys (or
git authenticated via SSH keys) from Command Prompt (
or PowerShell, you either have to use startup scripts for the terminals or set the
ssh-agent variables manually
on each instance. This program just simply make
ssh-agent universally available to programs launched from
Windows environment. Which means that you can use do
ssh-add to add keys that will be available in all terminals.
And use your precious
git right from Command Prompt, PowerShell, Bash or any other.
Download the binary from latest release.
ssh-agent-helper.exe: Invoking the program without any parameters will result in running
SSH_AGENT_PIDas current user's environment variables. This will allow
sshor any other programs that consume
ssh-agentto conect to it without any further configuration. But you must restart Command Prompt or PowerShell after this to take effect.
ssh-agentto run at the time of Windows startup.
-r -a (path for (multiple) id_rsa here)configures
ssh-agentto run at Windows startup and add specified SSH keys to the agent. E.g.
ssh-agent-helper.exe -r -a %USERPROFILE%\.ssh\id_rsa
-uwill disable run at Windows startup functionality.
You can get the usage information by invoking the program with
Try to use use and report bugs if you face any. Suggest any ideas you think can make this project better.
This project is covered by MIT License and the LICENSE file is included with the source code.