Skip to content

Instantly share code, notes, and snippets.

@samloh84
Created July 18, 2014 02:23
Show Gist options
  • Save samloh84/7ee77b730e2f7e70b166 to your computer and use it in GitHub Desktop.
Save samloh84/7ee77b730e2f7e70b166 to your computer and use it in GitHub Desktop.
Pageant batch file to load all keys
set expanded_list=
for /f "tokens=*" %%F in ('dir /b /a:-d "%USERPROFILE%\.ssh\*.ppk"') do call set expanded_list=%%expanded_list%% "%%F"
start /B /I "Pageant" "C:\Program Files (x86)\PuTTY\pageant.exe" %expanded_list%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment