栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

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

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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.

通过baidu,从错误下面给出的官方文档 https://github.blog/2021-09-01-improving-git-protocol-security-github/ 可以看到,github对SSH密钥做了升级,原来的SHA-1,rsa等一些已经不支持了,由于我使用的是rsa,可能和大部分用户一样,所以今天在push代码时候遇到了这个问题,记录以下。
生成新的Ed25519密钥对:
ssh-keygen -t ed25519 -C "your-email"
一路回车。
会在.ssh目录下生成两个文件

id_ed25519
id_ed25519.pub

将id_ed25519.pub文件中的内容copy,拿出来到github上
这里:


添加一个新的ssh keys即可
验证key是否可用:使用 ssh -T git@github.com 对ssh key 进行验证

之后就可以正常使用push命令上传了。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/835219.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号