Gitkraken cannot use local SSH agent

I recently changed my GitHub username, and when I try to click Authentication> Use Local SSH Agent, GitKraken push does not work with the following error:

Push Failed Configured SSH key is invalid. Please confirm that it is properly associated with your git provider. 

Deselecting the option shows the correct private / public key pair located in

 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub 

and allows you to push.

I can also click from within Eclipse and through the command line without errors. The repository url points to my new username.

So far I have checked a few things:

 ssh -T github.com 

gives permission denied

The id fingerprint id_rsa.pub matches the key existing in the Github account.

The following command assumes that the ssh tool is trying to use the rsa private key, but is rejected:

 $ ssh -vT github.com debug1: Offering RSA public key: /home/<user>/.ssh/id_rsa debug1: Authentications that can continue: publickey debug1: Trying private key: /home/<user>/.ssh/id_dsa debug1: Trying private key: /home/<user>/.ssh/id_ecdsa debug1: Trying private key: /home/<user>/.ssh/id_ed25519 debug1: No more authentication methods to try. Permission denied (publickey). 

What causes ssh -vT to fail in this case, and why doesn't it prevent git from being pressed / turned off, but it fails when GitKraken tries to click?

+6
source share
2 answers

For me, this was due to an upgrade to OSX Sierra. I had to execute

ssh-add -k ~/.ssh/id_rsa

(you may need to replace this with the key path that you are using). The command adds the ssh key to the git agent. For more information, see the GitHub Help page on adding SSH keys . You may need to add the command to some settings file that starts at boot because the ssh agent doesn't seem to remember the key (at least for me).

+4
source

What helped me solve the problem was to go to GitKraken preferences and connect both Bitbucket and Github and resolve them.

After that, check the "general" field, which uses the local ssh agent. (perhaps

0
source

Source: https://habr.com/ru/post/1265029/


All Articles