Heroku error: “Permission denied (public key)”

前端 未结 6 566
梦毁少年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:07

    Copy the files in your .ssh path ex:

    /c/Users//.ssh/
    

    to the git .ssh folder.

    /c/Program Files/Git/.ssh/
    

    If the .ssh folder doesn't exist in the Git directory simply create it then paste your files.

    For some reason windows require that a .ssh path be in the user directory as well as the Git directory. ON default this is not added so you simply have to create it yourself.

    After adding the files to Git's directory simply run the following command again:

    git push heroku master
    

提交回复
热议问题