2013-08-25 41 views
1

我想在Spring(版本:3.3.0.RELEASE)工具中从模板创建一个新的Heroku应用程序。我已经成功锁住了,并获得了正确的ssh密钥加载在Spring和英雄网络帐户。我也有小于5个项目(未达到限制),每次我尝试启动新的项目,并设置“Spring MVC的& Tomcat应用程序”,然后单击完成它给了我一个错误时间:在Eclipse中从模板创建Heroku应用程序?

We have encountered a problem creating your application: shielded-retreat-3014. 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. 
[email protected]:shielded-retreat-3014.git: reject HostKey: heroku.com 

编辑:

刚刚发生错误,应用程序在heroku网络帐户上创建。

即使我重新启动Eclipse并尝试导入现有项目(是的,它看到它)“autodetect:Maven”和“常规项目”不起作用,也会发生同样的错误。

回答

4

答案很简单,但花了我数小时才弄明白。 Heroku网站未被添加到您的已知主机。在Eclipse中,转到Window - > Show view - > Other ... - > Git - > Git repositories。从那里,克隆存储库。一旦你克隆它,从文件菜单中导入它。这样做是因为在克隆存储库时,它不会将其添加到资源管理器视图。现在您应该拥有Git存储库和资源管理器视图。

+0

我有同样的问题,这解决了我的问题,试图[这些解决方案]后(http://stackoverflow.com/questions/18374030/eclipse-my-ssh-key-does-not-match (https://groups.google.com/forum/#!topic/heroku/s54dYyJaF0M)和[这一个](http://groups.google.com/forum/#!topic/heroku/s54dYyJaF0M) //stackoverflow.com/questions/13239158/how-to-associate-ssh-key-to-heroku-account-in-eclipse-i-am-getting-following-err)。 –

0

我想我有这个相同的问题,并解决它。我相信这个问题是由于没有一个已知的hostku.com主机条目。我不确定获得所需指纹的最佳方式是什么,但是当我尝试使用Egit从heroku中克隆repo时,我解决了我的问题。我得到了一个弹出信息告诉我,heroku.com不是一个已知的主机,并允许我接受密钥。如果我记得正确,你第一次尝试ssh进入主机时通常会得到这个密钥。

相关问题