Skip to content

Wrapper around ssh-agent.exe to start ssh-agent and set environment variables as necessary.

License

Notifications You must be signed in to change notification settings

rangercej/ssh-agent-powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Powershell Wrapper for ssh-agent
================================

Once downloaded, move the script to ~/Documents/WindowsPowershell then
edit your profile.ps1 to source it:

	. ~/Documents/WindowsPowershell/ssh-agent.ps1

This will put three functions into your environment:

	Start-SshAgent
	Stop-SshAgent
	Get-SshAgent

They do exactly what it says on the tin, and set the environment variables 
SSH_AGENT_PID and SSH_AUTH_SOCK correctly. These variables are set at both
the process and user level, so any new processes started in the user session
after the agent has started will inherit the same ssh-agent configuration.

Once running, keys can be added using ssh-add.exe as normal.

The ssh-agent used is that from a standard Git install (using Git for Windows
from https://git-scm.com/ ), which by default is in %PROGRAMFILES%\usr\bin.

Chris J, June 2018

About

Wrapper around ssh-agent.exe to start ssh-agent and set environment variables as necessary.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published