heroku / legacy-cli

Heroku CLI
https://cli.heroku.com
MIT License
1.37k stars 381 forks source link

Host key verification failed. #2000

Closed cmmartin closed 8 years ago

cmmartin commented 8 years ago

I'm trying to push a Node.js application to Heroku. The app uses npm to fetch private github repositories, which are specified in package.json, like this...

"dependencies": {
    "my-private-dep": "github:my-org/my-repo"
}

The build fails during the npm install phase because the github host keys are not in the containers known_hosts file.

remote:        npm ERR! Host key verification failed.

This is expected behavior of SSH. Does Heroku provide a workaround for this? For example, dokku, which uses the same buildpack has a host keys plugin that will inject the host keys into the container before each build, which resolves this issue. Does Heroku have a similar solution?

jdx commented 8 years ago

This project is for the Heroku CLI only. Please submit a support ticket for help with your application.

cmmartin commented 8 years ago

I'm not looking for help. I'm looking for a yes or no answer as to whether Heroku CLI provides a means to inject host keys into the container. It seems strange that it would support SSH keys, but not host keys. That's only half the battle. Anyway, I guess this isn't the forum for this kind of question.