2013-08-22 35 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導入它。