【问题标题】:Deploying Code to Heroku (Issues?)将代码部署到 Heroku(问题?)
【发布时间】:2013-02-08 22:11:12
【问题描述】:

https://devcenter.heroku.com/articles/python

当我尝试通过$ git push heroku master 部署我的代码时出现错误:

    Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list      of known hosts.
    Permission denied (publickey).
    fatal: The remote end hung up unexpectedly

接下来,我可以通过 $ heroku keys:add 为该 IP 地址添加 RSA 主机密钥,但我仍然收到此错误:

   Found existing public key: /Users/opalkale/.ssh/github_rsa.pub
   Uploading SSH public key /Users/opalkale/.ssh/github_rsa.pub... done
   (venv)Opal-Kales-MacBook-Pro:helloflask opalkale$ git push heroku master
   Permission denied (publickey).

我做错了什么...?

【问题讨论】:

  • 请标记正确答案:)
  • @Learath 如果我没有足够的声望点该怎么办?
  • 您可以通过点击答案旁边的复选标记来标记正确答案:meta.stackexchange.com/a/5235/142717

标签: python git heroku github


【解决方案1】:

在线将您的 id_rsa.pub SSH 密钥添加到您的 Heroku 帐户:https://dashboard.heroku.com/account

并确保相应的私钥已添加到您的身份中

$ ssh-add ~/.ssh/id_rsa

例如

$ ssh-add ~/.ssh/github_rsa

【讨论】:

  • 确保它是正确的公钥。拥有多个公钥是可以的。
  • 不错。我的回答是解决方案吗?
猜你喜欢
  • 2018-01-09
  • 2021-11-16
  • 2011-06-10
  • 2020-01-06
  • 1970-01-01
  • 2015-06-05
  • 2012-09-14
  • 1970-01-01
相关资源
最近更新 更多