Permission denied (publickey). vjr

I need to download something for work, and need to do it fairly quickly. I entered the following command:

git clone -b build --single-branch build

I got the following response:


Cloning into ‘build’…
Warning: Permanently added the RSA host key for IP address ‘’ to the list of known hosts. Permission denied (publickey).
fatal: Could not read from remote repository.

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


I tried entering an SSH public key into my Github account and into my ~/.ssh directory. Same result.

How do I get past this error?

Your local SSH setup will also need the private key. Other than that try running ssh -vT to get debug information from SSH. Hopefully that can tell you (or someone here) what’s wrong.

OK, I got it figured out. Thanks.