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

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

问题描述

在你告诉我参考类似问题之前,我已经尝试了他们的所有答案并在网上做了我自己的研究(即使我是新手).当我尝试将最新更改推送到 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

然后

git push heroku master

我得到以下信息:

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

我已经设置了密钥,删除了它们,改变了它们等等.我所有的文件夹/文件都在 Users/Dennis/...

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

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

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?

推荐答案

参见 https://stackoverflow.com/a/9070685/664833 并运行 ssh-add -d 然后再次尝试推送.

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

还可以尝试https://stackoverflow.com/a/8803103/664833(创建一个新的密钥对并添加将公钥上传到 Heroku).

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天全站免登陆