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