Git@github.com: 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 git@github.com:ros/meta-ros build

I got the following response:

==========

Cloning into ‘build’…
Warning: Permanently added the RSA host key for IP address ‘140.82.114.4’ to the list of known hosts.
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.

==========

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 git@github.com to get debug information from SSH. Hopefully that can tell you (or someone here) what’s wrong.

OK, I got it figured out. Thanks.