Download and install the latest 64-bit PuTTY. Using the MSI is fine.
Generate an SSH key
Each computer should a unique SSH key. The same key can be reused for GitHub, Bitbucket, and any other Git server you connect to.
- Launch PuTTYgen:
- Select "Ed25519"
- Click "Generate" and wave the mouse around until the progress bar fills up
- Fill in the comment with this computer's name
- Optionally, set a passphrase to protect the key file on disk
- Click "Save private key" and save the .ppk on disk
- Open your SSH key settings in GitHub and add a new key. Paste the "Public key for pasting into OpenSSH authorized_keys file" text box into the Key field in GitHub and save.
- Close PuTTYgen
Launch Pageant and add the .ppk. If you set a passphrase on the file, you'll have to enter it.
You'll need to launch pageant and add your key each time you log in to Windows.
Configure Git to use PuTTY
Open a command prompt and run:
setx GIT_SSH "%ProgramW6432%\PuTTY\plink.exe"
Trust GitHub's SSH fingerprint
putty -ssh email@example.com
You will be asked to trust the server fingerprint. Click Yes to save this decision.