Git push heroku master错误?

时间:2014-02-23 13:06:11

标签: ruby-on-rails git heroku

我已经使用heroku create成功创建但是当我从git推送时它给出了如下错误: -

C:\Sites\boot>git push heroku master

!  Your account snehp92@gmail.com does not have access to protected-thicket-253
8.
!
!  SSH Key Fingerprint: 6e:d8:39:da:45:ad:b5:b2:e5:36:2e:14:0e:92:b5:8e

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2 个答案:

答案 0 :(得分:1)

您需要将ssh密钥添加到heroku。要添加密钥,请运行以下命令

heroku keys:add

如果您没有密钥,请使用

生成新密钥
ssh-keygen -t rsa

然后将ssh密钥添加到heroku

答案 1 :(得分:0)

我建议您获取最新版本的Heroku Toolbelt,然后再次添加存储库:

$ heroku login
Enter your Heroku credentials.
Email: adam@example.com
Password:
Could not find an existing public key.
Would you like to generate one? [Yn]
Generating new SSH public key.
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub

git remote -v
git remove heroku master

heroku git:remote -a protected-thicket-253