Skip to main content

TortoiseGit Setting the SSH Key

Here are steps to set the SSH key for a repo checkout.

  1. Open File Explorer and navigate to the checkout folder.

  2. Right-click the folder, Select TortoiseGit → Settings.

  3. From the Settings page, on the left-hand navigation pane, locate the Git node and select the Remote node under it.

  4. Then, in the right-hand pane, select origin in the Remote list, and the URL and key path will be displayed on the right.

image.png

You can update the key path for the checked out repository, by changing the Putty Key text field, and pressing Ok.

This same config is also available in the checked out repository’s working folder, at this relative path:

<<workingfolder>>\.git\config

The file looks like this:

image.png

Automated Method

When the SSH key expires and you have many repositories checked out, see this page for how to update all checkout folders quickly: GitHub SSH Key Updates