Git 2.33.1及以上版本报错解决:git@gitee.com: Permission denied (publickey).
·
1.换用其它算法生成ssh key:
ssh-keygen -t ed25519 -C "git邮箱"
之后到gitee或coding上添加公钥即可。
tip:这种方式需要更换ssh key,推荐windows用户使用.
2.配置OpenSSH服务允许使用RSA-SHA1 key:
在 ~/.ssh/config 加上如下配置:
Host gitee.com
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
tip:这种方式不需要更换ssh key,推荐Linux和windows git bash用户使用.
3.暂时不要使用OpenSSH 8.8及以上版本
更多推荐



所有评论(0)