gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 14:20:24 25 4
gpt4 key购买 nike

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 主机 key ,但我仍然收到此错误:

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

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

最佳答案

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

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

$ ssh-add ~/.ssh/id_rsa

例如

$ ssh-add ~/.ssh/github_rsa

关于python - 将代码部署到 Heroku(有问题?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15038640/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com