Skip to content

Instantly share code, notes, and snippets.

@ajai8085
Forked from nulltier/Powershell
Created August 14, 2017 03:38
Show Gist options
  • Save ajai8085/642978882ee02e6693c0a1c00e6f88f3 to your computer and use it in GitHub Desktop.
Save ajai8085/642978882ee02e6693c0a1c00e6f88f3 to your computer and use it in GitHub Desktop.
usefull commands for ssh-agent in powershell
Get-SshAgent - Returns the process ID of the running agent, or zero if there is not one currently running.
Start-SshAgent - Starts the agent process and sets the appropriate environment variables for SSH.
Stop-SshAgent - Stops the process if there is one and unsets the variables.
Add-SshKey - Instructs the agent to add the given key to itself. This will cause you to be prompted for the passphrase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment