git push heroku master得到以下错误

时间:2013-06-09 05:06:36

标签: heroku heroku-toolbelt

我正在尝试使用以下命令行将代码部署到heroku:

 $ git push heroku master
    Permission denied (publickey).
    fatal: Could not read from remote repository.

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

1 个答案:

答案 0 :(得分:1)

您需要添加密钥。

 heroku keys:add ~/.ssh/id_rsa.pub

请参阅:https://devcenter.heroku.com/articles/keys