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

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

    I use this method to solve this problem Maybe you can try it

    "Enable ssh-agent"

    1. Download git

    http://git-scm.com/

    1. Install it

    2. Enable ssh-agent

    C:\Program Files\Git\cmd

    start-ssh-agent

    The message disapper after I agent enabled Hope this will help you

    0 讨论(0)
  • 2020-12-12 09:29

    The problem I was having is that I was only using https for my GitHub account. I needed to make sure that my GitHub account was setup for ssh access and that GitHub and heroku were both using the same public keys. These are the steps I took:

    1. Navigate to the ~/.ssh directory and delete the id_rsa and id_rsa.pub if they are there. I started with new keys, though it might not be necessary.

      $ cd ~/.ssh
      $ rm id_rsa id_rsa.pub
      
    2. Follow the steps on gitHub to generate ssh keys
    3. Login to heroku, create a new site and add your public keys:

      $ heroku login
      ...
      $ heroku create
      $ heroku keys:add
      $ git push heroku master
      
    0 讨论(0)
提交回复
热议问题