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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM