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?
You registered your public key (usually resides in
~/.ssh/id_rsa.pub
, where~
is the folder home user) in your Github account?– Jefferson Quesado
Yes Jeferson, I have a registered key there.
– LeAndrade
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 foropenssh-keygen
always works– Jefferson Quesado
I don’t know which key it is, I didn’t even know it
– LeAndrade