Heroku error: “Permission denied (public key)”

前端 未结 6 552
梦毁少年i
梦毁少年i 2020-12-22 18:39

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\"

6条回答
  •  甜味超标
    2020-12-22 19:32

    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

提交回复
热议问题