I'm connecting to a private git repository, one which I've been using fine with SourceTree for years.
I'm trying to work with GitKraken since SourceTree is getting increasingly slow, and GitKraken tells me my key pair is "invalid" and I need to check if they are in RSA format.
The key pair was generated by Putty Gen and works fine for SourceTree and other formats. I even tried reopening them in PuttyGen and exporting in RSA format, no difference.
Any idea why? I suspect it's some kind of formatting issue, but it's hard for me to tell and GitKraken has zero documentation on this error.
Thanks in advance.
From Sourcetree, open the PuTTY Key Generator dialog by going to Tools > Create or Import SSH Keys. Click Load, navigate to your SSH folder, and click the private key. Make sure you're looking at All files if you don't see your private key. Enter your passphrase for the SSH key and click OK.
Make sure the authorized_keys file and the private key itself have the correct permissions and ownership. Check that key-based authentication is allowed by the server. Make sure the private key is readable by the SSH client. If you're using PuTTY, make sure your SSH keys are properly configured for the session.
When using SSH with GitHub you'll often need to add deploy keys to the repo to allow read and write access over SSH.
Git does not know, or care. It just runs ssh. Specifies that ssh(1) should only use the authentication identity files configured in the ssh_config files, even if ssh-agent(1) or a PKCS11Provider offers more identities. The argument to this keyword must be “yes” or “no”.
I did the following steps and work well.
Gitkraken > File > Preferences > Authentication
.gitkraken_rsa
and gitkraken_rsa.pub
files respectively.gitkraken_rsa.pub
click on the clipboard icon in order to copy the content of that file.Bitbucket settings > Security > SSH Keys
and delete actually keys, after that, click on Add key button, paste the content of RSA file, add label name of that key and press Add key
And it's that, you can establish secure communication between Gitkraken and bitbubket.org.
NOTE: Looks like that key generated by gitkraken has a specific number of bits different to ssh-keygen
command, so if you want to generate a key with a specific number of bits use ssh-keygen -b 4096
for 4096 bits length.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With