SSH Heroku Error:

I followed the Eclipse Heroku tutorial and tried to create an application. However, in the last three hours I received the following error:

We encountered the problem of creating your application: fierce-atoll-8131. This may be because the Eclipse SSH key does not match the SSH keys associated with your Heroku account. To fix this error, you can:

  • Link your SSH key to Heroku account by going to Settings, OR
  • If the SSH key is correct, restart Eclipse. git @ heroku.com: fierce-atoll-8131.git: reject HostKey: Heroku.com

I went through Google and all the forums for this, but there are no fixes, Heroku also seems to be ignoring it, as they did not offer any solution. I deleted my keys, made new ones, used toolbelt. I'm starting to think that this is a mistake, and that Heroku simply ignores it or does not know.

The error also occurs when creating an application on the Java.Heroku website and trying to import it into Eclipse. As I mentioned, I followed the Tutorial here in Heroku about getting started with Eclipse, so I would be grateful if it were not indicated for answers, since it has no solution.

I work on Windows 7 64bit with Eclipse Kepler

+6
source share
3 answers

The problem is caused by the Heroku plugin not adding a record of known hosts for heroku.com and the git clone does not work.

To solve this problem, go to File β†’ Import ... β†’ Projects from Git. Then select the URI, click Next and put the project URI in the URI field (i.e. git @ heroku.com: fierce-atoll-8131.git) and click Next. You will then be prompted to add the fingerku.com fingerprint to the list of known hosts and create a file of known hosts if it does not exist. After that, you can cancel the import of git and continue importing the Heroku plugin.

+24
source

Thanks WinterN I, too, ran into the same problem in Windows 7. I still haven’t been able to start it! But I tried on Centos 6.4 x86_64 VM. I'm sure you have the same error. Finally did what you suggested. $ ssh git @ heroku.com, and he added the heroku key to the knownhosts Restarted git file. First tried to import an existing Heroku design form, Succeeded! Next create β†’ new β†’ Heroku Template succeeded! Thanks again for your advice!

0
source

Whenever I experienced this problem, the reason was that I had two SSH-RSA keys with the same β€œcomment”.

Log into your Heroku online account toolbar ( https://dashboard.heroku.com/account ), and look in the section for SSH keys. If you see more than one with the same comment (RSA-1024 seems to be the default for generating SSH2 keys in eclipse), delete the ones you don't use (you'll want to look at each eclipse setting that you have for the ones you use , or you can just clear them all and configure SSH-RSA again using eclipse). Then, when you create a new RSA key, put username@computer in the comment and add it to Heroku.

Once you clear duplicate keys from the Heroku toolbar, you can create a new key in the eclipse that you configure by doing the following:

  • Eclipse Settings, General-> Network Connections-> SSH2
  • Key Management Tab
  • RSA key generation
  • Type user @computer in the Comment box instead of RSA-1024
  • Select "Apply" to save the file.

Then add the key to Heroku:

  • Eclipse, Heroku Settings
  • (Log in to get the API key, if it is not already filled)
  • Select Download SSH Key.
  • open a previously saved file
  • Choose Add
  • Apply OK

Hope this helps!

0
source

Source: https://habr.com/ru/post/952884/


All Articles