-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
25 lines (17 loc) · 888 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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