Diagnostic step 1
Run: ssh -v -i ~/.ssh/id_rsa git@github.com Result meaning: If authentication succeeds (GitHub prints a welcome line), local key works. If verbose output still shows 'Permission denied', the remote rejected that key — check remote account key material or try a different key file.