【发布时间】:2021-11-14 13:29:08
【问题描述】:
当我遇到此错误时,我正在尝试从存储库中推送代码:
没有匿名写访问权限。
我已按照 Git push from Visual Studio Code: "No anonymous write access. Authentication failed" 中提到的步骤进行操作,但仍然遇到同样的错误。
我需要对该问题中提到的流程进行一些说明。
做了cat ~/.ssh/id_ed25519.pub之后,看到了格式里的key
ssh-ed25519 <key> <email>
我是否需要将整个内容复制到 GitHub 帐户的 key field 中,例如 key+email 或仅 key?
除了澄清还有其他解决方案吗?
我根据收到的答案复制了所有内容。但是,我将遥控器从https 更改为ssh 链接,然后在推送时出现此错误:
sign_and_send_pubkey: signing failed: agent refused operation
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
【问题讨论】:
-
这个更新丑闻的规范问题现在有一个候选人:fatal: Authentication failed for(尽管标题不明确)