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,推荐Linuxwindows git bash用户使用. 

3.暂时不要使用OpenSSH 8.8及以上版本

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐