gpt4 book ai didi

ruby-on-rails - 无法将项目推送到 Heroku。指纹问题

转载 作者:行者123 更新时间:2023-12-03 22:39:42 24 4
gpt4 key购买 nike

当我尝试将 git 项目推送到 heroku 时,出现错误 -

Your key with fingerprint xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx is not authorized to access my_heroku_app.

我已经尝试了几乎所有我在互联网上找到的东西——添加 key 、上传、删除每个 key ,然后重试。我检查过没有多个帐户。我还检查了 .git/config 文件以查看项目名称是否准确。

我注意到在我删除 known_hosts 文件并尝试推送项目后,它说 -

The authenticity of host 'heroku.com (50.19.85.132)' can't be established.
RSA key fingerprint is *some.random.fingerprint.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'heroku.com,50.19.85.154' (RSA) to the list of known hosts.
! Your key with fingerprint my.original.configured.fingerprint is not authorized to access first-app.
fatal: The remote end hung up unexpectedly

这很有趣,因为那不是我的指纹。我在 ib_rsa.pub 中的那个与 heroku 尝试使用的那个不同。我做了一个 heroku 键,我只看到一个键(它应该使用的那个。)我不知道它从哪里挑选这个奇怪的 key 。任何建议都会有所帮助。谢谢!

最佳答案

我找到了解决方案。

在.git/config中,将[remote "heroku"]中的工程名修改为heroku给定的名字。

关于ruby-on-rails - 无法将项目推送到 Heroku。指纹问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10755041/

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