github: permission denid

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 371
Joined: Tue Nov 12, 2013 2:05 am

github: permission denid

Post by peter_b »

[PROBLEM]
Trying to "git push" to a repository of mine on github.com:
ERROR: Permission to USER1/repository.git denied to USER2.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Seems there's a mixup between which USER (1 or 2) I'm authenticating as...
I'm using ssh.

[SOLUTION]

I've accidentally had my SSH key assigned to USER2 (in github's user-account > settings > SSH keys), and not for USER1.
Check which SSH keys you have assigned to which account *on github.com* - and adjust the access conditions/rights accordingly.
Post Reply