I have been trying to clone a project on Heroku.
I have already checked to see that my key (id_rsa.pub) has been added to Heroku via heroku keys:add and that it shows up correctly under heroku keys:status
However, when I do git clone, I get Permission denied (public key). This leads me to believe that my ssh settings are incorrect. Note, I am working on a Ubuntu machine.
To debug this even further, I tried to clone a github repo. Which confirming my belief, worked when using https but not ssh (same error).
My question:
How do I determine which private key git is trying to use to perform the cloning operation.
Additionally, I have tried adding a config file to my .ssh folder with the contents:
Host heroku.com
Hostname heroku.com
IdentityFile ~/.ssh/id_rsa