为什么当我尝试将最新的更改推送到Heroku时,我的密钥无法获得授权? [英] Why is my key w/ fingerprint not authorized when I try to push latest changes to Heroku?

查看:194
本文介绍了为什么当我尝试将最新的更改推送到Heroku时,我的密钥无法获得授权?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在你告诉我提及类似的问题之前,我已经尝试了所有的答案,并在网上做了我自己的研究(尽管我对此很陌生)。当我尝试使用

  git remote add heroku git@heroku.com:reviews.git $ b推送Heroku的最新更改时$ b  

然后

  git push heroku master 

我得到以下内容:

  Macintosh-84:评论dk1552 $ git push heroku master 
!指纹2c:4e:7b:df:02:7e:18:c8:2a:16:04:bc:59:5b:88:98
的密钥无权访问评论。

致命:远程终端意外挂起

我设置了所有我的文件夹/文件都在 Users / Dennis /...



我正在更新的一个文件位于: Users / Dennis / reviews / app / views / static_pages / about_us.html.haml



我需要做些什么来解决这个问题? 并运行 ssh-add -d 然后再次尝试推送。



另请尝试 https://stackoverflow.com / a / 8803103/664833 (创建一个新的密钥对并添加公钥到Heroku)。


Before you tell me to refer to the similar questions, I've literally tried all of their answers and did my own research online (even though I am new to this). When I try to push the latest changes to Heroku with

git remote add heroku git@heroku.com:reviews.git

and then

git push heroku master

I get the following:

Macintosh-84:reviews dk1552$ git push heroku master
!  Your key with fingerprint 2c:4e:7b:df:02:7e:18:c8:2a:16:04:bc:59:5b:88:98
   is not authorized to access reviews.

fatal: The remote end hung up unexpectedly

I've set up keys, removed them, changed them, etc. All my folders/files are in Users/Dennis/...

One file I am updating for example is located in: Users/Dennis/reviews/app/views/static_pages/about_us.html.haml

What do I need to do to fix this?

解决方案

See https://stackoverflow.com/a/9070685/664833 and run ssh-add -d then try pushing again.

Also try https://stackoverflow.com/a/8803103/664833 (create a new key-pair and add upload the public key to Heroku).

这篇关于为什么当我尝试将最新的更改推送到Heroku时,我的密钥无法获得授权?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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