首页 > 技术文章 > TortoiseGit拉取代码报错,You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.

lucker 2022-04-06 11:10 原文

前因:Github移除了用户名密码验证方式,通过 SSH 或 git://连接的新客户端不允许使用RSA SHA-1签名(SHA-1 is weak)

解决方案:改用ed25519或RSA SHA-2签名

生成工具:PuTTY Key Generater

生成步骤与过去相同;

 

TortoiseGit(版本 2.10.0.2)配置:

1. 右键 - TortoiseGit - 设置 - Git - 远端 - origin - PuTTY密钥,设置指定ppk文件(私钥)

 

Pageant配置

2. 打开Pageant - 移除不再使用的RSA SHA-1签名

 

参考:

TortoiseGit配置GitHub账号的SSH keys

Improving Git protocol security on GitHub

 

推荐阅读