gpt4 book ai didi

github - 权限被拒绝(公钥)。致命: The remote end hung up unexpectedly while pushing back to git repository

转载 作者:行者123 更新时间:2023-12-03 07:11:59 25 4
gpt4 key购买 nike

Possible Duplicate:
github: newbie problems -> Permission denied (publickey). fatal: The remote end hung up unexpectedly

请参阅下面的命令,

$ git clone git://github.com/{user_name}/{project_name}.git
Initialized empty Git repository in /home/dengx/rorBlog_demo/rorblog/.git/

更改文件并提交,因此我需要推回 git 存储库。

$ git push git@github.com/{user_name}/{project_name}.git master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

所以,我将存储库的 ssh-key 复制到我的文件 ~/.ssh/id_rsa.pub,然后再次推送,

$ git push git@github.com/{user_name}/{project_name}.git master
Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

现在我该怎么办,谢谢您的帮助。

最佳答案

Google 搜索“权限被拒绝(公钥)。致命:远程端意外挂起”,第一个结果是一个确切的 SO 欺骗:

GitHub: Permission denied (publickey). fatal: The remote end hung up unexpectedly其中链接在已接受的答案中(来自原始海报,不少于):http://help.github.com/linux-set-up-git/

关于github - 权限被拒绝(公钥)。致命: The remote end hung up unexpectedly while pushing back to git repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7065257/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com