Skip to content

Instantly share code, notes, and snippets.

@Anachron
Created October 19, 2013 10:30
Show Gist options
  • Select an option

  • Save Anachron/7054256 to your computer and use it in GitHub Desktop.

Select an option

Save Anachron/7054256 to your computer and use it in GitHub Desktop.
Portable Windows Programming - SSH Agent
TASKKILL /im "ssh-agent.exe" /F
DEL "%SSH_AUTH_SOCK%" /F
FOR /F "tokens=1 delims=;" %%r IN ('ssh-agent -a %SSH_AUTH_SOCK% ') DO @(SET %%r >NUL 2>&1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment