on OSX, I had the same problem, I was getting
no such identity: /Users/me/.ssh/yourPrivateKey: No such file or directory Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
I tried to create a new key using ssh-keygen -t rsa and then add it using heroku: add keys, but that didn't help.
Then I found a file called config in ~ / .ssh /, and inside the file:
ServerAliveInterval 300 ServerAliveCountMax 3 host heroku.com user git hostname heroku.com identityfile ~/.ssh/yourPrivateKey
So, I changed yourPrivateKey to my private key file name (default id_rsa) aaand it worked :)
wiherek Sep 01 '14 at 20:19 2014-09-01 20:19
source share