其他分享
首页 > 其他分享> > ERROR:You‘re using an RSA key with SHA-1, which is no longer allowed

ERROR:You‘re using an RSA key with SHA-1, which is no longer allowed

作者:互联网

xcode 拉代码报错:ERROR:

You‘re using an RSA key with SHA-1, which is no longer allowed

 

解决办法:

 

# 生成新秘钥,使用这个:ssh-keygen -t ecdsa -b 521 -C "your_email@example.com",一路回车(第一个回车是生成秘钥的名字,不给就默认,后两个是密码,可以不要)

$ ssh-keygen -t ecdsa -b 521 -C "your_email@example.com"

 

# 启动 ssh 代理,根据环境,使用不同的命令

$ eval "$(ssh-agent -s)"

 

# 将秘钥添加到代理中,如果还有其他以前秘钥,也要添加进去

$ ssh-add id_ecdsa

 

# 查看秘钥,并复制粘贴到GitHub

$ cat ~/.ssh/id_ecdsa.pub

 

github -> setting -> SSH and GPG key -> New SSH key

  重新拉代码就没问题 

 

标签:longer,秘钥,SHA,email,ssh,key,allowed,ecdsa
来源: https://www.cnblogs.com/duzhaoquan/p/16276941.html