-1

There are a lot of questions about this error, but I even get it for a public git repo. I'm a little bit lost about how to track down the issue.

PS C:\dev> git clone git@github.com:golang/dep.git
Cloning into 'dep'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
phd
  • 82,685
  • 13
  • 120
  • 165
Tarion
  • 16,283
  • 13
  • 71
  • 107
  • It doesn't matter if it is a private or public repo. If you want to use ssh, you need to configure your ssh key. https://stackoverflow.com/a/2643584/9083959 – lukas-reineke Apr 10 '18 at 08:39

1 Answers1

0

This may because you haven't configured your ssh key as expected.

  • If you only need to clone the repository, you can try with https protocol.

  • Otherwise, you can configure your ssh key follow here.

Jian Cao
  • 21
  • 1
  • 7