-4

git first push is not work,whitch point out the error is:

"Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists."

What should I do?

Maroun
  • 94,125
  • 30
  • 188
  • 241
Tomorrow
  • 1
  • 1
  • 3
  • 5
    Well.."*make sure you have the correct access rights and the repository exists*". – Maroun Feb 25 '16 at 11:59
  • 1
    What have you tried to verify that "you have the correct access rights and the repository exists" ? – PeterSW Feb 25 '16 at 12:02
  • add your ssh key to settings(github or bitbucket vs) settings. – FatmaT Feb 25 '16 at 12:06
  • I have to add SSH to git, but, through my search related issues on the Internet that I may be SSH, but what is the specific problem, I will not find.. – Tomorrow Feb 25 '16 at 12:18
  • did you generate ssh keys and add the settings? If your ssh keys is not authorized you are not allow to pull & push to repo. http://stackoverflow.com/questions/21255438/permission-denied-publickey-fatal-could-not-read-from-remote-repository-whil – FatmaT Feb 25 '16 at 13:03

1 Answers1

0

I think it will help.

Your ssh key is not authorised :- Permission denied (publickey).

How to do this click here:-

Permission denied (publickey) fatal: Could not read from remote repository. while cloning Git repository

Community
  • 1
  • 1
akshay_rahar
  • 1,661
  • 2
  • 18
  • 20