git permission denied when doing a push

I’ve been operating primarily in one repository, but had to create and work in another. When I tried to push my code to my new repo, I got the following error:


$ git push -u origin master

ERROR: Permission to xxxxxxx denied to yyyyyyyy.

fatal: The remote end hung up unexpectedly

I new the fix was going to be associating my git account with a new ssh key, but wasn’t sure how that’d mess up my access to my existing repo (which is a community repo with it’s own deploy keys). So, I took the plunge anyway, and it work – both repos are accesible and git knows the difference between the 2 just fine.

Here’s the how-to on setting up a new ssh key (scroll down to about 1/2 way): 



Leave a Reply

Powered by

Up ↑

%d bloggers like this: