首先,我使用创建新密钥
ssh-keygen -t rsa -C "user@mail.com"
然后我将生成的密钥添加到heroku by heroku keys:add。之后,我尝试使用git push heroku master.
在此之前,我使用以下命令配置了我的 git 存储库:git init, git add ., git commit, heroku create, git remote add heroku git@heroku:sth.git.
但是,我收到了这个错误Host key verification failed。
我正在运行 ubuntu 11.10 版。这很奇怪。