由于密钥指纹无法推送到 Heroku [英] Cannot push to Heroku because key fingerprint

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

问题描述

我是 Rails 的新手,我试图将一个非常简单的应用程序部署到 Heroku.这是我部署的第二个应用程序,也是我能够做得很好的第一个应用程序.但是,我对此有一些问题.每当我git push heroku master"时,我都会收到此错误:

I am new to Rails, and I was trying to deploy a very simple app to Heroku. This is the second app that I deploy, and the first one I was able to do it just fine. However I am having some issues with this one. Whenever I "git push heroku master", I get this 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.

致命:远端意外挂断

我尝试在登录 heroku 后管理我的密钥.如果我在控制台中输入heroku 密钥",那么我得到:

I have tried to manage my keys after logging in heroku. If I type in my console "heroku keys", then I get:

我的电子邮件地址没有键.

No keys for myemailaddress.

但是,如果我运行命令heroku keys:add",我得到

However, If I run the comand "heroku keys:add" I get

找到现有的公钥:/Users/michele/.ssh/id_rsa.pub上传 ssh 公钥/Users/michele/.ssh/id_rsa.pub!指纹已经存在.请为每个 Heroku 帐户使用一个 ssh 密钥

Found existing public key: /Users/michele/.ssh/id_rsa.pub Uploading ssh public key /Users/michele/.ssh/id_rsa.pub ! Fingerprint already exists. Please use one ssh key per Heroku account

请帮帮我!这太令人沮丧了,我不知道出了什么问题!谢谢

Please help me! This is soo frustating, I have no idea what's wrong! Thank you

推荐答案

我遇到了同样的问题,我按照这个帖子和其他同类帖子都没有成功:-((

I had the same problem, I followed this post and others of the same kind without success :-((

终于找到了解决办法:我必须在我的机器中添加我的新 rsa 身份!

Finally, I found the solution: I had to add my new rsa identity in my machine!

所以,首先我创建了一个新的 rsa 密钥:

So, first of all I created a new rsa key:

ssh-keygen -t rsa -C "giordano.scalzo[at]gmail.com" -f  ~/.ssh/id_rsa_heroku

然后把它加到我的机器上

then added it to my machine

ssh-add ~/.ssh/id_rsa_heroku

最后,到 Heroku

and, finally, to Heroku

heroku keys:add ~/.ssh/id_rsa_heroku.pub

在那之后,

git push heroku master

工作就像一个魅力!

希望这会有所帮助.

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

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