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.
This is very silly. When it asked whether I wanted to add the host, I just entered without saying yes.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With