An unknown error occurred.ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type. Please see https://github.blog/ 2021-09-01-improving-git-protocol security-github/ for more information (-20)
原因:因为 Adjust 或者 Facebook 的库当中依赖的某些类库的仓库地址是 git:// 协议,通过这种协议与 GitHub 通讯时会使用到你的 SSH 配置,你电脑上相关的 ssh key 使用了 GitHub 不再支持的格式
解决:
- 在终端应用程序中使用以下命令检查您的 SSH 密钥格式:
ssh-keygen -lf ~/.ssh/id_rsa.pub
-
如果输出中包含 SHA-1,则说明您的密钥使用了不再支持的格式。您需要生成一个新的 SSH 密钥,并使用符合 SHA-256 或更高标准的密钥格式。
-
2.在终端中运行以下命令,将新的 SSH 密钥添加到 ssh-agent 中:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa