Pageant does not load SSH-2 key generated with GitBash
The Pageant can load keys in the PuTTY format (.ppk
) only.
If you attempt to load a key in a different format, still recognized by PuTTY tools, you get the mentioned error message:
Couldn't load this key (OpenSSH-SSH-2 private key)
You need to use the PuTTYgen to convert the key from the OpenSSH format to the PuTTY format. If the Pageant recognized the file format, the PuTTYgen can convert it.
- Run PuTTYgen;
- Press Load to load the private key in OpenSSH format;
- Press Save private key to save the private key in
.ppk
format; - Now you can load the private key in
.ppk
format to Pageant.
Or even easier, use the PuTTYgen to create the a key directly in the PuTTY format, instead of using the ssh-keygen
.
See the PuTTY wishlist for reasons it has its own key format:
https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/key-formats.html
Note that I believe there's no standard for SSH-2 private key file format.
PuTTY doesn't understand the id_rsa private key if it shows this error:
You need to convert the private key to a .ppk (private key format).
- Open PuTTY Key Generator (Start-> search 'puttygen')
- You will need to import the RSA private key. To do so, open the 'Conversions' menu > 'Import key'.
- Select the RSA private key to convert.
- Click on "Save private key". Notice that you could also save it in another format.
- Then save as 'id_rsa.ppk'
- Open Pageant - PuTTY authentication agent (if not already open)
- Click on "Add Key"
- Select your converveted private key.
- As you can see, PuTTY recognise it now in the 'Pageant Key List'.
I stillt have the problem right now. The variable SSH_GIT ist set to the TortoiseGitPlink.exe. I made a key pair with git bash
ssh-keygen -o
I loaded the key with PUTTYGen and transformed it to the *ppk version. Saved the key in the tortioseGit settings and the public key to my github account, but i still get a request to put in my credentials and afterwards my push is denied. Funny think, on my laptop it works. i am pretty sure i did everything like on my laptop.