git push heroku master permission denied

前端 未结 7 2211
有刺的猬
有刺的猬 2021-01-31 02:04

I am following the ruby.railstutorial. I run the command \"git push heroku master\" and it spits out this error.

Permission denied (publickey).
fatal: Could not          


        
7条回答
  •  忘了有多久
    2021-01-31 02:20

    The best way to avoid such errors is to use one public/private key pair and not an extra key for heroku. This way you (or your system) can't choose a wrong key to login in heroku.

    If you get this error, you have done something wrong. Check this site: https://devcenter.heroku.com/articles/keys

    If you geht this error, the best way is to remove unnecessary keys and use only one.

    If you need more than one key pair on your system, you can set one key for heroku. This is done through the following command:

    heroku keys:add
    

提交回复
热议问题