git push heroku master permission denied

前端 未结 7 1968
有刺的猬
有刺的猬 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:18

    If you are working on Windows, be sure to use git-bash instead of Powershell/Command Prompt.

    If you just want to reset your ssh keys:

    1. delete your user's .ssh dir
    2. open git-bash
    3. ssh-keygen -t rsa
    4. heroku keys:add

    and then you will be able to git push.

提交回复
热议问题