Git Push / Git clone does not work even after setting an SSH key correctly

Asked

Viewed 87 times

0

Even if you correctly set an RSA-type SSH key, as described in: GIT LAB SSH, I did several tests and added a file config:

Host gitlab.com
    Hostname gitlab.com
    IdentityFile ~/.ssh/gitlab

I got it in my briefcase .SSH:

config  id_rsa  id_rsa.pub  known_hosts

I have tested several solutions, but for any external access command I receive as response the error:

[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
  • You have placed this specific key in your gitlab account?

  • I even checked to see if it was correct, and I did it twice and nothing helped.

  • Along that line of config ==> IdentityFile ~/.ssh/gitlab, you are teaching the ssh that your identity for gitlab is the archive gitlab inside the briefcase .ssh. I’ve never seen this file before. I don’t think you’re using multiple identities, so I think it’s better remove that file.

  • even withdrawing it, still not working, I had put by indication of other people inside a gitlab Issue

  • Are you sure you moved up the file id_rsa.pub? A common mistake is to raise the private key instead of the public key. If it is not that, then my options have run out, I would try to change to https to communicate with the appropriate repository and delegate the option to change pro ssh to the me of the future.

  • Unfortunately I have,. :/

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.