【问题标题】:Issue Pushing Code to Heroku Public Key Error将代码推送到 Heroku 公钥错误
【发布时间】:2012-07-22 22:04:01
【问题描述】:

我在将本教程中的代码: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

【问题讨论】:

    标签: git heroku


    【解决方案1】:

    检查您的 .ssh 配置中的 heroku。转到 .ssh 文件夹并打开配置文件

    cd ~/.ssh
    subl config
    

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

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

    不是

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

    这对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-08
      • 2013-09-11
      • 1970-01-01
      • 2012-03-10
      • 1970-01-01
      相关资源
      最近更新 更多