this is the error:
git push origin master
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.
The repo definitely exists as I pushed to it yesterday.
Things I tried:
- copied my SSH public key to github settings several times
- delete $HOME/.ssh and regenerated the SSH keys (ssh-keygen -t rsa -b 4096). I then copied the new public key to github.
some info
git remote -v
origin git@github.com:myusername/myrepo.git (fetch)
origin git@github.com:myusername/myrepo.git (push)
Any ideas why it could be failing? Thanks