2013-08-22 36 views
2

当我尝试通过“创建Heroku应用模板”创建新项目时出现此错误,但是,我可以成功地看到部署在我的heroku ACCT。Eclipse:我的SSH密钥与我的Heroku帐户关联的SSH密钥不匹配

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. 
[email protected]:arcane-citadel-9718.git: reject HostKey: heroku.com 

我该如何解决这个错误?

+0

嗯,使用相同的SSH密钥?你有这样的问题吗? – eis

+0

有同样的问题, 这个线程解决我的问题:http://stackoverflow.com/questions/18374030/eclipse-my-ssh-key-does-not-match-the-ssh-key-associated-与-MY-Heroku的-ACCT –

+0

有同样的问题, 这个线程解决我的问题:http://stackoverflow.com/questions/18374030/eclipse-my-ssh-key-does-not-match-the -ssh-key-associated-with-my-heroku-acct –

回答

0

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

尝试从您的终端运行ssh [email protected]以接受Heroku的主机密钥。

+0

我在shell 0上得到'shell请求失败' – fardown

+0

听起来你可以通过SSH连接到Heroku。 (你收到错误是因为Heroku没有通过SSH提供shell访问)。在使用SSH连接后使用Eclipse进行推送?通过从命令行运行'git push heroku master'来推送工作吗? –

+0

我使用远程系统资源管理器在eclipse中SSH到ubuntu 12.04in AWS的t1.micro实例,然后尝试使用“git push heroku master”。我使用的是我在eclipse中的CLI中生成的相同的SSH密钥。 – fardown

1

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

+0

谢谢,解决了我的问题! :) btw。你怎么解决这个问题? –

1

绝招:手动添加的git回购在eclipse,例如:[email protected]:您的应用程序内 日食例如:It然后将密钥添加到已知主机的某个地方。取消git克隆并返回到“导入heroku应用程序”。它会工作。

+0

我不知道为什么有人投票支持雷米,但这对我有用,其他答案没有。 – leoger

1

好像git仓库托管在其他地方。诀窍是将其IP添加到已知主机。这是在通过终端克隆你的应用时自动完成的,例如,

git clone [email protected]:myappname.git 

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