Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes

前端 未结 14 1739
故里飘歌
故里飘歌 2020-12-12 08:57

I\'ve searched around for many hours on end looking to a solution to my seemingly easy-to-fix problem. It\'s not that my search turned up nothing, it\'s that my search turne

14条回答
  •  长情又很酷
    2020-12-12 09:20

    I know this has already been answered. But I would like to add my solution as it may helpful for others in the future..

    A common key error is: Permission denied (publickey). You can fix this by using keys:add to notify Heroku of your new key.

    In short follow these steps: https://devcenter.heroku.com/articles/keys

    First you have to create a key if you don't have one:

    ssh-keygen -t rsa
    

    Second you have to add the key to Heroku:

    heroku keys:add
    

提交回复
热议问题