I have a following problem:
$ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you ha
I had the similar problem and my problem was solved by running the following command to add my key to the list of known keys:
ssh-add ~/.ssh/id_rsa
Hope it solves yours too. ;)