Github SSH权限被拒绝部署密钥 [英] Github SSH Permission denied to deploy key
问题描述
我创建了一个新的存储库,能够使用SSH克隆并提交所有内容.但是当我尝试推送时,出现以下错误:
I created a fresh repo, was able to clone with SSH and commit and everything. But when I try to push I get the following error:
ERROR: Permission to Ronin11/MealPlanr.git denied to deploy key
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
使用:
ssh -T git@github.com
我能够验证我的ssh密钥是否有效.我不知道发生了什么事.这只是前几天的工作.我已经几个月没有接触过这些设置了.所有这些都是使用Mac上的终端.
I was able to verify that my ssh key is working. I have no idea what happened. This was just working the other day. I haven't touched these settings in months. All this was using the terminal on Mac.
帮助!
推荐答案
您提到您正在使用OSX.如果您使用的是10.12.2+,则可能是ssh配置存在问题.Github的文档对此有注释.
You mentioned you were using OSX. If you're on 10.12.2+ it may be a problem with your ssh config. Github's documentation has a note about that.
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
具体来说,他们说将以下内容添加到〜/.ssh/config
Specifically they say add the following to ~/.ssh/config
主机*AddKeysToAgent是UseKeychain是IdentityFile〜/.ssh/id_rsa
希望这会有所帮助
这篇关于Github SSH权限被拒绝部署密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!