Skip to content

Instantly share code, notes, and snippets.

@chocolatkey
Last active April 24, 2020 01:15
Show Gist options
  • Save chocolatkey/8be7b315affe10843e580da3359ec44f to your computer and use it in GitHub Desktop.
Save chocolatkey/8be7b315affe10843e580da3359ec44f to your computer and use it in GitHub Desktop.
Windows startup script to run Putty's pageant + the Git for Windows ssh-pageant for forwarding
@echo off
echo Starting PuTTY Pageant...
start "" "C:\Program Files\PuTTY\pageant.exe" %USERPROFILE%\.ssh\id.ppk
echo Starting Git4Win ssh-pageant...
"C:\Program Files\Git\git-cmd.exe" --no-needs-console --hide ""C:\Program Files\Git\cmd\start-ssh-pageant.cmd" >nul & exit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment