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

前端 未结 14 1584
故里飘歌
故里飘歌 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:25

    I just thought I'd share that I found the answer to my own question.

    Writing out my problem made it even more clear to me, and I further investigated into where I thought my problem lay: the ssh key

    Turns out I was right. The issue wasn't with the key itself, but rather that I had not added it to my local Mac's list of known ssh keys. So even though my Heroku account had the correct key uploaded, my Mac could not authenticate with it because it could not find that key on my computer. The solution?

    ssh-add ~/.ssh/id_rsa
    #and, to confirm it's been added to the known list of keys
    ssh-add -l
    

    I would like to give credit to https://help.github.com/articles/error-permission-denied-publickey for being a good reference.

提交回复
热议问题