TortoiseGit configuration key ppk

TortoiseGit uses a key with the extension ppk instead of the rsa key generated by ssh-keygen. The key generated using the command ssh-keygen -C "email address" -t rsa cannot be used in TortoiseGit. The git-based development must use the rsa key, so you need to use TortoiseGit's putty key generator tool to generate both git rsa keys and TortoiseGit ppk keys. The specific configuration steps are as follows

1. Run the puttygen program in the TortoiseGit start menu, as shown below 

二.点击“Generate”按钮,鼠标在上图的空白地方来回移动直到进度条完毕,就会自动生一个随机的key,如下图示 

My public key

ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEApqQCnMmBKF8aAmurC55Ew/80aHh1A1JHUNS6kErxZZogLUClOUlZ0Su3+pRL+/aQbPaXhT7FQNJZrmXScFGA5m46xqa7KXq4NfDnL27cIbcj7hPPonvk0IEvW/XsC01PL6kaZATZjuqcDipRW2JGkb3sVNC/U8ziVMZRTpKYrXYOlubunmgTPjY3Vt9fL9eCwf/e/Ags7qV/6M2FW+8g+enldQ2iOImWFMrSj2T1OleXI7y6rBUD0gEWWTmC4ZKhwfsCgHP1uIp1DUDh4MqbnKQJikxvXy0d0fqRCR9XIGGr6HZD8KscnexYT5TgUJT3VR/vS/TVaO1sOcJQrJZP9w== rsa-key-20190731
如有需要,可以为密钥设置对应的访问密码,就是修改上图中“Key passphrase”和“Confirm passphrase”的值。本人这里未设置访问密码,为空

3. Copy and paste the generated key into the SSH public key in the git account, this is the public key applicable to git

4. Click the "Save private key" button in the above figure to save the generated key as a private key (with the extension .ppk) suitable for TortoiseGit

5. Run the Pageant program in the TortoiseGit start menu. After the program starts, it will automatically dock in the taskbar, and the icon is displayed as

Double-click the icon to pop up the key management list, as shown below

点击Add Key,将保存的ppk文件添加进来即可,添加后如下图


Click close to finish

Published 69 original articles · Like 72 · Visit 240,000+

Guess you like

Origin blog.csdn.net/londa/article/details/97887083