由于密钥指纹,无法推送到Heroku [英] Cannot push to Heroku because key fingerprint
问题描述
我是Rails的新手,我试图在Heroku上部署一个非常简单的应用程序。这是我部署的第二个应用程序,并且我能够做到的第一个应用程序就好了。不过,我遇到了这个问题。每当我 git push heroku master 时,我得到这个错误:
!您的密钥与指纹xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx未被授权>访问my_heroku_app。
致命:远程终端意外挂断
登录到heroku后,我试图管理我的密钥。如果我输入我的控制台 heroku keys ,那么我得到:
myemailaddress没有键。 / p>
但是,如果我运行命令 heroku keys:add ,我会得到
找到现有公钥:/Users/michele/.ssh/id_rsa.pub
上传ssh公钥/Users/michele/.ssh/id_rsa。 pub
!指纹已经存在。请使用Heroku账户中的一个ssh密钥
请帮助我!这太令人沮丧了,我不知道有什么问题!
谢谢
我遇到同样的问题,我跟着这篇文章和其他同类文章没有成功: - ((
)最后,我找到了解决方案:
我必须在我的机器中添加新的rsa标识!
因此,首先我创建了一个新的rsa键:
ssh-keygen -t rsa -C giordano.scalzo [at] gmail.com-f〜/ .ssh / id_rsa_heroku
然后添加它到我的机器
ssh-add〜/ .ssh / id_rsa_heroku
,最后是Heroku
heroku keys:add 〜/ .ssh / id_rsa_heroku.pub
之后,
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:
! 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.
fatal: The remote end hung up unexpectedly
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.
However, If I run the comand "heroku keys:add" I get
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 :-((
Finally, I found the solution: I had to add my new rsa identity in my machine!
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
and, finally, to Heroku
heroku keys:add ~/.ssh/id_rsa_heroku.pub
After that,
git push heroku master
worked like a charm!
Hope this helps.
这篇关于由于密钥指纹,无法推送到Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!