1

I try to create remote repository in my own Ubuntu server(SFTP). I installed and config Git by follow this link : http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server. Then try to push my code to server from my local machine it gives following error.

$ git push 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."

The public keys are available in local .ssh directory as well as in server authorized_keys file.
How would you troubleshoot this?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Madhubalan K
  • 357
  • 5
  • 21

0 Answers0