重新添加密钥到 Github

发布于 2024-09-07 02:05:26 字数 314 浏览 0 评论 0原文

我删除了 SSH 密钥,试图进行一些回溯。当我去重新添加它们时,我得到“哎呀!密钥已经被拿走了。”尽管我显然只是删除了它所指的密钥。

看来系统并没有立即自我更新。有人知道需要多长时间才能从我的帐户中删除密钥以便我可以将它们重新安装吗?

或者我错了,我错过了什么?我尝试通过 SSH 访问 [email protected],它引用了我用来添加密钥的名称。

I removed my SSH Keys in an effort to backtrack a little bit. When I went to re-add them I got "Oops! The key has already been taken. " Even though I obviously just removed the key it was referring to.

It seems the system just doesn't update itself right away. Anyone know how long it takes to remove the keys from my account so that I can put them back up?

Or am I wrong and I am missing something? I tried SSH'ing into [email protected], and it refered to the name I use to add my keys.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

以为你会在 2024-09-14 02:05:26

我在尝试添加 id_dsa.pub 密钥时遇到此错误; id_rsa.pub 工作得很好。

太糟糕了,错误消息诊断出了错误的问题(密钥类型不正确)。如果有更好的错误消息,我就不用再去谷歌搜索了。

I got this error when trying to add my id_dsa.pub key; id_rsa.pub worked just fine.

Too bad the error message diagnosed the wrong problem (incorrect key type). A better error message would have saved me a trip to the googles.

迷路的信 2024-09-14 02:05:26

您是否尝试过向 github 支持人员发送电子邮件并解释您的问题?

否则,要么系统超时,您可以再次上传旧密钥,要么您将需要新密钥 - 我不知道 github 对旧密钥的具体限制是什么。

Have you tried emailing github support and explaining your problem?

Failing that, either the system will timeout and you can upload the old ones again or you will need new keys - I don't know exactly what github's restrictions on old keys are.

一生独一 2024-09-14 02:05:26

您必须生成一个新密钥,不能只删除旧密钥并重新上传。

You have to generate a new key, you cant just delete the old and re upload it.

伏妖词 2024-09-14 02:05:26

我认为你的问题是你将哪个密钥复制到 GitHub!
您必须复制公钥。通常是 .pub 文件!

I think your problem is which key are you copying to GitHub!
You have to copy the PUBLIC KEY. Usually is the .pub file!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文