Error pushing on gitbash

Asked

Viewed 129 times

3

Is showing the following error in the git bash:

$ git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Can anyone tell me why?

  • 1

    You registered your public key (usually resides in ~/.ssh/id_rsa.pub, where ~ is the folder home user) in your Github account?

  • Yes Jeferson, I have a registered key there.

  • 2

    The registered key is the same as git on the command line uses? Another point, you went up the public key, not the private key, right? Confusing these keys has already caused problems with colleagues here at work. It was also problematic to generate the keys by Putty, but for openssh-keygen always works

  • I don’t know which key it is, I didn’t even know it

1 answer

2


Browser other questions tagged

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