首页 文章

问题推送代码到Heroku公钥错误

提问于
浏览
0

我在推送本教程中的代码时遇到问题:http://newsinternational.github.com/iot-assistant/到heroku . 我在第五步 . 当我发出git push heroku master命令时,我得到错误Permission denied(publickey) . 致命:远程端意外挂断 . 我已经尝试过:Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedlyhttps://devcenter.heroku.com/articles/keys

1 回答

  • 0

    检查你的.ssh配置是否为heroku . 转到.ssh文件夹并打开配置文件

    cd ~/.ssh
    subl config
    

    'subl'适用于Sublime Text,但您可以使用您想要的任何编辑器 . 查找“IdentityFile”行,并确保列出了非公钥:

    IdentityFile "/Users/ircmullaney/.ssh/id_rsa"
    

    IdentityFile "/Users/ircmullaney/.ssh/id_rsa.pub"
    

    这样做对我来说 .

相关问题