3

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

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

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

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

4

1 回答 1

1

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

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

$ ssh-add ~/.ssh/id_rsa

例如

$ ssh-add ~/.ssh/github_rsa
于 2013-02-23T08:35:10.670 回答