This error comes up a lot, but the usual method has not fixed this issue: GIT push: permission denied (public key) .
This fix has not helped me. I was able to do:
ssh -T git@github.com
... with no issue at all.
git remote -v
... also returns the correct URL with SSH pattern.
This is the third time I've tried to link to a GitHub page, so I'm not sure why I'm getting this issue only now. Is there any chance that I'm being denied access by the host of the github page? Could it somehow be a fault on their end?
I am able to pull from this branch and merge, but when I tried to push my merge conflicts, as well as some updates to the code I now receive the error (after entering the passphrase for my ssh key):
Enter passphrase for key '~/.ssh/id_rsa':
ERROR: Permission to <path>.git denied to <UserName>.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Maybe my username is wrong? I tried setting it to my github name as well as the name returned that I am being denied as.
Thanks for any help in advance!