git推Heroku master权限被拒绝 [英] git push heroku master permission denied

查看:100
本文介绍了git推Heroku master权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循ruby.railstutorial。我运行命令git push heroku master,并且吐出这个错误。

  Permission denied(publickey)。 
致命:无法从远程存储库读取。
请确保您具有正确的访问权限
并存在存储库。

我在我的rails应用程序/ Users / lexi87 / rails_projects / first_app中。任何解决方案?解决方案

避免这种错误的最佳方法是使用一个公钥/私钥对,而不是一个额外的密钥Heroku的。这样你(或你的系统)就不能选择一个错误的密钥来登录heroku。



如果你遇到这个错误,你做错了什么。检查这个网站: https://devcenter.heroku.com/articles/keys



如果您遇到此错误,最好的方法是删除不必要的密钥并只使用一个。



如果您需要多于您系统上的一个密钥对,您可以为heroku设置一个密钥。这是通过以下命令完成的:

  heroku keys:add 


I am following the ruby.railstutorial. I run the command "git push heroku master" and it spits out this error.

Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

I am inside my rails app "/Users/lexi87/rails_projects/first_app". Any solutions?

解决方案

The best way to avoid such errors is to use one public/private key pair and not an extra key for heroku. This way you (or your system) can't choose a wrong key to login in heroku.

If you get this error, you have done something wrong. Check this site: https://devcenter.heroku.com/articles/keys

If you geht this error, the best way is to remove unnecessary keys and use only one.

If you need more than one key pair on your system, you can set one key for heroku. This is done through the following command:

heroku keys:add

这篇关于git推Heroku master权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆