When I try and push commits up to GitHub, I get a
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Luckily, help.GitHub has a great article on solving SSH issues. I ran through this guide and found that ssh-add -l -E md5
returns The agent has no identities.
The guide says to generate a new key, which I did. After that, ssh-add
returns something like 2048 MD5:a0:dd:42:3c:5a:9d:e4:2a:21:52:4e:78:07:6e:c8:4d /Users/you/.ssh/id_rsa (RSA)
as expected.
Great, I think, the problem's solved. I try another push, and get the same public key issue. I've made sure that my key is correctly set in GitHub. When I start a new session, ssh-add
again returns no identities. I've even started the process from scratch following the article above. I've checked my permissions, and now I'm out of troubleshooting leads.