2

当我尝试通过“创建 Heroku 应用程序模板”创建新项目时出现此错误,但是,我可以成功地看到部署在我的 heroku 帐户中的应用程序。

    We have encountered a problem creating your application: arcane-citadel-9718. This could be due to the Eclipse SSH key is not matching the SSH key(s) that is associated with your Heroku account. To fix this error, you can: - Associate your SSH key to your Heroku account by going to "Preferences" OR - If the SSH Key is correct, restart Eclipse.
git@heroku.com:arcane-citadel-9718.git: reject HostKey: heroku.com

我该如何解决这个错误?

4

5 回答 5

1

我找到了解决方案。我创建了一个GIT_SSH指向usr/bin/sshwith的环境变量export GIT_SSH=usr/bin/ssh,然后从终端运行 eclpse。然后导入或创建新的 heroku 应用程序。

于 2013-09-07T08:31:48.537 回答
1

似乎 git 存储库托管在其他地方。诀窍是将其 IP 添加到已知主机。这是通过终端克隆您的应用程序时自动完成的,例如

git clone git@heroku.com:myappname.git

然后你应该也可以用 Eclipse 导入它。

于 2013-12-10T17:34:39.307 回答
1

技巧:在 Eclipse 中手动添加 git-repo,例如:git@heroku.com:your-app eclipse eGit 然后将密钥添加到某处的已知主机。取消 git clone 并返回“import heroku app”。它会起作用的。

于 2013-09-27T10:20:33.483 回答
1

访问这个 -解决错误:Eclipse SSH 密钥与与您的 Heroku 帐户关联的 SSH 密钥不匹配

于 2014-07-27T02:17:23.197 回答
0

看起来 SSH 拒绝 Heroku 的服务器端密钥。

尝试ssh git@heroku.com从终端运行以接受 Heroku 的主机密钥。

于 2013-08-22T16:14:31.587 回答