2012-04-18 106 views
5

首先,我创建使用Git的推Heroku的

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

然后,我通过heroku keys:add添加生成的关键的Heroku新的密钥。 之后,我尝试使用git push heroku master将我的git存储库推送到heroku。

,我已经使用这些命令的ConfigEd我的git仓库前:git initgit add .git commitheroku creategit remote add heroku [email protected]:sth.git

但是,我得到了这个错误Host key verification failed

我正在运行的Ubuntu 11.10版本。这很奇怪。

+0

git remote -v输出是什么? – ngm 2012-04-18 19:18:51

+0

github上\t [email protected]:crowdvn/CrowdVN.git(取) github上\t [email protected]:crowdvn/CrowdVN.git(推) 的Heroku \t [email protected]:成长雪7014.git (抓取) heroku \t [email protected]:grow-snow-7014.git(push) – v4r 2012-04-19 08:20:49

+0

什么是ssh -vvv [email protected]输出?这可能会提供有关错误发生位置的更多信息。 – ngm 2012-04-19 08:27:20

回答

7

这很愚蠢。当它询问我是否想要添加主机时,我只是不加说明地进入。

+1

刚刚发生在我身上。 :) – WonderCsabo 2013-09-27 08:18:58

1

我觉得

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

应该

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

即heroku.com,而不是仅仅的Heroku。

+0

因为我也遇到这个问题,当我试图SSH到GitHub,这不是原因。顺便说一句,我试过了,它是一样的。 – v4r 2012-04-19 04:26:28