将代码部署到Heroku(问题?)

时间:2013-02-23 08:28:19

标签: python git heroku github

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).

我做错了什么......?

1 个答案:

答案 0 :(得分:1)

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

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

$ ssh-add ~/.ssh/id_rsa

E.g。

$ ssh-add ~/.ssh/github_rsa