Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Download PuTTY

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.

  1. Launch PuTTYgen:
  2. Select "Ed25519"
  3. Click "Generate" and wave the mouse around until the progress bar fills up
  4. Fill in the comment with this computer's name
  5. Optionally, set a passphrase to protect the key file on disk
  6. Click "Save private key" and save the .ppk on disk
  7. 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.
  8. Close PuTTYgen

Launch Pageant

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

Run: putty -ssh git@github.com

You will be asked to trust the server fingerprint. Click Yes to save this decision.

Close PuTTY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.