I'm so confused. I'm trying to get the git clone command working, but it keeps saying:
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 feel I have done all the correct steps, though.
1- I've installed git. When I do git --version it says git version 2.17.1.
2- I've also done ssh-keygen -t ed25519 -C "my_email@example.com" and see the id_ed25519.pub file in my .ssh folder.
3- I've done eval "$(ssh-agent -s)" and ssh-add ~/.ssh/id_ed25519 and have added copied the contents of id_ed25519.pub into my Github as an SSH key.
Then when I do
ssh -T git@github.com
I get:
The authenticity of host 'github.com (140.82.114.4)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,140.82.114.4' (RSA) to the list of known hosts.
Hi nightfarrow! You've successfully authenticated, but GitHub does not provide shell access.
Please make sure you have the correct access rights
and if I try to do
sudo git clone --recursive git@github.com:shubham-goel/ucmr.git
I get that fatal: Could not read from remote repository. error.
What might be the issue at this point? How can this problem be diagnosed? Thank you.