How can i start the pageant ssh agent, and load all my private keys without adding them one by one to a batch file or in pageant itself?
I can add key-files to pageant on the commandline by listing them after the executable or load them manually when pageant is already running. But there is no well documented way to load all the key-files in a folder on startup.
i assume you have putty and thus pageant installed and available in your PATH
C:\Users\[USER]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
.powershell -Command "& pageant (Get-ChildItem [PATH TO KEYS]\*.ppk)"
(preplace [PATH TO KEYS] with the path to your key-files ;)On the next reboot pageant should be started up with all the ppk files in the linked folder.
If you want to avoid the console window popup, get RunHiddenConsole
from https://github.com/SeidChr/RunHiddenConsole.
powershellw -Command "& pageant (Get-ChildItem [PATH TO KEYS]\*.ppk)"