Failed to add the host to the list of known hosts (/app/.ssh/known_hosts). heroku

It was due to private git repository. In gem file there was:git param, I had provided , was causing bundler to try to pull it over ssh.

gem “jquery-treeview-rails”, :git => ‘’


gem “jquery-treeview-rails”

fatal: ‘heroku’ does not appear to be a git repository

I was facing same issues, When i cloned a client project and he had already created heroku server. Even he collaborated me to his account.

Below googled solution worked for me.

git remote add heroku

Where appname is the name of your app.

After that

git push heroku master

(assuming you want to push the master branch)