Alex Rivera | Logout

Heroku error: "Permission denied (public key)"

Asked 2010-08-14T04:13:15.810
94

I keep getting this error. I am using Mac. I generated a key and added it to heroku using

heroku config:add key="ssh-rsa blahblah=me@me.com"

But this doesn't work. I keep getting the same error. Short of reinstalling ssh-keygen, what can I do about this?

Edit
Report

1 Answer

19

the solution above did not work for me as I did not have any keys generated in my ~/.ssh folder.

My solution was to simply type heroku keys:add

The output in terminal was:

Could not find an existing public key.
Would you like to generate one? [Yn] y
Generating new SSH public key.
Uploading SSH public key /home/funkdified/.ssh/id_rsa.pub... done

See: https://devcenter.heroku.com/articles/keys

answered 2013-04-04T20:15:00.123

Your Answer