Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push to heroku

Tags:

git

heroku

First, I create new keys using

ssh-keygen -t rsa -C "[email protected]"

Then I add the generated key to heroku by heroku keys:add. After that, I tried to push my git repository to heroku using git push heroku master.

Before that I have configed my git repository using these commands: git init, git add ., git commit,heroku create, git remote add heroku git@heroku:sth.git.

However, I got this error Host key verification failed.

I'm running ubuntu version 11.10. This is strange.

like image 917
thd Avatar asked Apr 18 '12 17:04

thd


2 Answers

This is very silly. When it asked whether I wanted to add the host, I just entered without saying yes.

like image 125
thd Avatar answered Oct 20 '22 15:10

thd


I think

git remote add heroku git@heroku:sth.git

should be

git remote add heroku [email protected]:sth.git

i.e. heroku.com rather than just heroku.

like image 44
ngm Avatar answered Oct 20 '22 14:10

ngm