无法将项目推送到Heroku。指纹问题 [英] Can't push a project to Heroku. Fingerprint problems

查看:156
本文介绍了无法将项目推送到Heroku。指纹问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将git项目推送到heroku时,它给了我一个错误 -

When I try to push a git project to heroku, it gives me an error -


您的密钥使用指纹xx:xx: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx没有权限访问my_heroku_app。

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.

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

I've tried almost anything and everything I found on the internet - adding keys, uploading, removed every key and then retried. I've checked there are no multiple accounts. I've also checked the .git/config file to see if the project name is accurate.

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

I noticed that after I delete the known_hosts file and try to push the project, it says -


主机'heroku.com(50.19.85.132)'的真实性无法建立。

RSA密钥指纹是* some.random.fingerprint。

您确定要继续连接(是/否)吗?是

警告:永久性地将'heroku.com,50.19.85.154'(RSA)添加到已知主机列表中。

!带有指纹 my.original.configured.fingerprint 的密钥无权访问第一个应用程序。

致命:远程终端意外挂断

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键,我只看到一个键(它应该使用的键)。
我不知道它从哪里选取这个奇怪的键。任何建议都会有帮助。谢谢!

This is interesting because that is not my fingerprint. The one I have in ib_rsa.pub is different from the one that heroku tries to use. I did a heroku keys and I see only one key (the one it's supposed to use.) I have no idea where it's picking this weird key from. Any suggestions will help. Thanks!

推荐答案

我找到了解决方案。

在.git / config中,将[remoteheroku]中的项目名称更改为heroku给出的名称。

in .git/config, changed the project name in [remote "heroku"] to the name given by heroku.

这篇关于无法将项目推送到Heroku。指纹问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆