TortoiseGit configuration key

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
 If necessary, you can set the corresponding access password for the key, that is, modify the values ​​of "Key passphrase" and "Confirm passphrase" in the above figure.
3) Select, copy, and paste the contents of the multi-line text box in the above figure into the SSH public key of the git account, which is the public key for git.
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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325688940&siteId=291194637