(on Mac) I'm trying to clone my project from my new computer. I first generated the ssh key pairs:
heroku keys:add /Users/y/.ssh/heroku_rsa.pub
heroku keys
shows:
ssh-rsa AAAAB3NzaC...B9DjpXg3fb y@server.local
When I try to clone my project by git clone git@heroku.com:xyz.git
Cloning into xyz...
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
This is strange.
EDIT: If I don't rename my pub key file then it works. Somehow heroku doesn't like renaming my keys.. in other words, use the deault id_rsa.pub
name.