Gitkraken hates my SSH keys that work in SourceTree
I am connecting to a private git repository which I have been using perfectly with SourceTree for years.
I am trying to work with GitKraken since SourceTree is getting slower and GitKraken tells me my key pair is "invalid" and I need to check if they are in RSA format.
The key pair was created by Putty Gen and works great for SourceTree and other formats. I even tried opening them in PuttyGen and exporting them in RSA format, no difference.
Any idea why? I suspect this is some kind of formatting issue, but it's hard for me to tell and GitKraken has zero documentation on this error.
Thanks in advance.
source to share
I did the following steps and it worked well.
- Go to
Gitkraken > File > Preferences > Authentication
. - Uncheck the Use local SSH agent checkbox .
- Click the Generate button next to Generate New Private / Public Key and upload these files.
- In Gitkraken, download both files (SSH private key and SSH public key) by clicking the Browse button and select the files
gitkraken_rsa
andgitkraken_rsa.pub
respectively. - Next to the shortcut,
gitkraken_rsa.pub
click the clipboard icon to copy the contents of that file. - Go to bitbucket.org , click in the lower left custom icon, then go
Bitbucket settings > Security > SSH Keys
and delete the actual keys, then click the Add key button , paste the contents of the RSA file, add the label name this key and click the Add button
And this is that you can establish a secure communication between Gitkraken and bitbubket.org.
NOTE. It looks like the key generated by gitkraken has a certain number of bits different from the command ssh-keygen
, so if you want to generate a key with a certain number of bits, use ssh-keygen -b 4096
4096 bits for the length.
source to share