微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

git push时提示错误 sign_and_send_pubkey: no mutual signature supported

本文通过MetaWeblog自动发布,原文及更新链接https://extendswind.top/posts/technical/git_push_sign_and_send_pubkey

git push命令之后,出现下面的错误提示

sign_and_send_pubkey: no mutual signature supported git@gitee.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

openssh的新版本(当前8.8p1-1)不支持ras的认秘钥。

一开始以为是gitee码云干了什么升级,之后发现是我的manjaro openssh版本太新的问题,已经不支持我几年前生成的秘钥(但是为什么ssh-keygen还是认用的rsa)。

推荐做法

ssh-keygen -t ed25519 -C “your_email@example.com

生成一个新的秘钥,然后公钥添加到gitee账户。

最简单处理

修改ssh的客户端的配置文件~/.ssh/config 或全局的配置文件 /etc/ssh/ssh_config,在其中加下面的代码

PubkeyAcceptedKeyTypes +ssh-rsa

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐