【问题标题】:Key with fingerprint not authorized in Heroku带有指纹的密钥在 Heroku 中未授权
【发布时间】:2012-12-19 03:44:35
【问题描述】:

像许多其他人一样,尝试让我的应用推送到 Heroku,但不断收到此错误

$ heroku login
Enter your Heroku credentials.
Email: my@email.com
Password (typing will be hidden): 
Found existing public key: /Users/scotty/.ssh/id_rsa.pub
Uploading SSH public key /Users/scotty/.ssh/id_rsa.pub... done
Authentication successful.
$ git push heroku master

 !  Your key with fingerprint xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx is not authorized to access todolist.

fatal: The remote end hung up unexpectedly

我完成了Heroku page 上的所有步骤,并尝试了这些类似问题中的大部分建议修复:

Your key with fingerprint .... is not authorized to access... myapp. The remote end hung up unexpectedly. HEROKU, GIT CLONE

Why is my key w/ fingerprint not authorized when I try to push latest changes to Heroku?

Cannot push to Heroku because key fingerprint

我为 heroku 添加了一个新密钥,尝试使用 ssh-add -D 命令删除所有密钥,从 Heroku 删除所有密钥,无论我尝试什么,我仍然得到相同的错误。

我只有一个 Heroku 帐户,所以多帐户问题不是问题。我现在只有一个 ssh 密钥,可用于我的 macbook 上的 github。

上面链接的答案中没有提到任何建议吗?

提前致谢。

【问题讨论】:

  • 删除所有带有ssh-add -D 的密钥后,是否还要手动添加带有ssh-add <path to Heroku key> 的Heroku 密钥?
  • 我做了同样的结果:(

标签: git heroku


【解决方案1】:

使用以下命令生成新密钥:

 ssh-keygen -t rsa -f ~/.ssh/id_rsa_heroku

将其添加到您的本地 ssh 代理:

ssh-add ~/.ssh/id_rsa_heroku

确保新密钥显示在 ssh-agent 中:

 ssh-add -l

使用 -d 标志删除不必要的键。 (这不会删除密钥,只会将其从 ssh-agent 中删除。)

ssh-add -d /Users/Niko/.ssh/id_rsa_hellonico

将 ssh 密钥添加到您的帐户:

https://dashboard.heroku.com/account

准备推送到heroku

git push heroku master 

【讨论】:

    猜你喜欢
    • 2012-08-02
    • 2012-06-01
    • 2013-05-19
    • 2012-02-21
    • 1970-01-01
    • 2012-07-15
    • 1970-01-01
    • 2012-02-05
    • 1970-01-01
    相关资源
    最近更新 更多