Git click on the hero

First I create new keys using

ssh-keygen -t rsa -C "user@mail.com"

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

Until then, I set up a repository, the git, using the following 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 am running ubuntu version 11.10. This is strange.

+5
source share
2 answers

It is so stupid. When he asked if I want to add a host, I just logged in without saying yes.

+7
source

I think,

git remote add heroku git@heroku:sth.git

it should be

git remote add heroku git@heroku.com:sth.git

i.e. heroku.com, not just a hero.

+1
source

All Articles