SSH Permission Denied (Publickey) on GitHub: Complete Troubleshooting Guide
Seeing Permission denied (publickey) when connecting to GitHub means GitHub could not authenticate your SSH connection with any key your computer offered. The usual causes are an unloaded key, an incorrect remote URL, a key attached to another GitHub account, or an SSH configuration problem.
This guide checks each cause in the fastest order so you can get git clone, git pull, and git push working again.
