TortoiseGit uses keys with ppk extension instead of rsa keys generated by ssh-keygen. Keys generated with the command ssh-keygen -C "email address" -t rsa cannot be used in TortoiseGit. Git-based development must use the rsa key, so you need to use the putty key generator tool of TortoiseGit to generate both the rsa key for git and the ppk key for TortoiseGit. The specific configuration steps are as follows:
1) Run the puttygen program in the TortoiseGit start menu, as shown below
2) Click the "Generate" button, move the mouse back and forth in the blank space in the above picture until the progress bar is completed, a random key will be automatically generated, as shown below
4) Click the "Save private key" button in the image above to save the generated key as a private key for TortoiseGit (extension .ppk).
5) Run the Pageant program in the TortoiseGit start menu. After the program starts, it will be automatically docked in the task bar, and the icon will be displayed as
, double-click the icon, and the key management list will pop up, as shown below
6) Click the "Add Key" button in the figure above, add the ppk private key saved in step 4, and close the dialog box