git - 无法将我的代码推送到 Heroku : Permission denied <public key> fatal: Could not read from remote repository

标签 git heroku deployment

我正在尝试使用这一行将我的代码推送到 Heroku:

git push heroku master

但我不断收到以下错误/消息:

Warning: Permanently added 'heroku.com,50.85.49.333' <RSA> to the list of known hosts. 
Permission denied <public key>
fatal: Could not read from remote repository

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

我已经上传了我的 key :

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

然后将我的 Remote 设置为 git url:

git remote set-url heroku git@heroku.com:project-name.git

仍然没有运气。谁能指出问题所在?

我正在关注 THIS简短的啧啧。

最佳答案

我真的应该在发布这个问题之前更加努力地搜索,因为我在另一个名称几乎相同的问题中找到了答案。

Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes

关于git - 无法将我的代码推送到 Heroku : Permission denied <public key> fatal: Could not read from remote repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19539671/

相关文章:

ruby-on-rails - 自定义字体未在 Rails 中的 Heroku 上呈现

python - django css 和 js 文件在 heroku 上进行 gzip 压缩

.net - 如何将 .NET Framework 4.0 Client Profile 附加到我的安装项目?

ios - 为客户编写 iOS 应用程序,客户提交?

git - 强制 "git status"在终端上输出颜色(在脚本内)

git - TortoiseGit 克隆的 SVN 仓库是空的

javascript - 400(错误请求)并且找不到manifest.json

git - 我可以 'git commit' 文件并忽略其内容更改吗?

git - Vim Bundle vundle 不会安装

java - Jboss As 7.1 零停机时间部署