github push 403 and Permission denied

Initially I was getting

error: The requested URL returned error: 403 Forbidden while accessing


$ git push origin master

I read a forum post that recommended

$ vi .git/config

and changing the url line from to ssh://

and then generating public/private keys and adding this to github.  After doing so I was getting

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

eventually I solve this by changing that url line in .git/config to

url =

… I also made sure to run

git config –global “LOGIN”
git config –global EMAIL

1 Comment

Leave Comment