【问题标题】:Deploy an app to heroku fail because of key not authorized由于密钥未授权,将应用程序部署到 heroku 失败
【发布时间】:2013-07-02 04:39:05
【问题描述】:

当我执行时:

 git push heroku master

我得到了以下信息:

ubuntu@ip-172-31-0-92:~/node-js-sample$ git push heroku master

 !  Your key with fingerprint XXXXXXXXXX is not authorized to access radiant-ocean-5431.

我在 Heroku 帐户上只注册了一个 ssh-key,并且只有一个应用程序。

ubuntu@ip-172-31-37-201:~/node-js-sample$ heroku apps
=== My Apps
radiant-ocean-5431
thawing-bayou-7424

这是ssh-add -l 的输出:

2048 AAAAAAAAAAA /Users/mylocaluser/.ssh/id_rsa (RSA)
2048 BBBBBBBBBBB /home/ubuntu/.ssh/id_rsa_heroku (RSA)

git remote show heroku 也失败了

我尝试删除并重新创建我的密钥,但没有任何成功。 我还手动删除了 herokus 上的大部分密钥,但没有任何成功。

我也遵循了这个: https://stackoverflow.com/questions/8786564/cannot-push-to-heroku-because-key-fingerprint

当我使用 ssh 时,我的用户有别名,这可能是问题吗?

【问题讨论】:

  • 你确定你使用了正确的heroku repo url git remote show heroku
  • git remote show heroku 也失败了,我编辑了我的问题。
  • 您确定您登录的是正确的帐户吗? heroku auth:whoami 是否会显示您在添加密钥时所期望的输出?
  • heroku auth:whoami 给了我我的登录电子邮件地址是的。我从头开始再次尝试,但没有成功。

标签: git heroku ssh


【解决方案1】:

需要手动删除openssl.cnf...在你的机器上找到文件并重命名为别的... Heroku client internal error. Unable to verify certificate

【讨论】:

    【解决方案2】:

    ssh-add -l 没有在远程机器上列出我的公钥,因为它不存在。

    运行 ssh-keygen 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-23
      • 1970-01-01
      • 1970-01-01
      • 2019-08-28
      • 2018-08-21
      • 1970-01-01
      • 2012-02-13
      • 2015-07-02
      相关资源
      最近更新 更多