-1

I am trying to clone my remote github repo to my EC2 Ubuntu server. When I run sudo git clone git@github.com:user/test.git

I have the message

Cloning into 'test'...

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

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

What do I need to setup to get my github repo in my server? Are there keys I need to add to my Github account? My server?

cphill
  • 5,596
  • 16
  • 89
  • 182

1 Answers1

0

GitHub isn't able to authenticate you.Your SSH key is not authorised. I would suggest you to get a look at the following links because this subject has already been treated:

Link 1 Subject: GitHub Error Message - Permission denied (publickey)
Link 2 Subject: Permission denied (publickey)

Hope this helped !

Ced
  • 1,293
  • 5
  • 23
  • 34