报错信息:
client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0
意思是:客户端\全局\主机密钥\私有\确认:服务器为RSA密钥0提供了错误签名
我在使用下面的指令git提交时出现的
git add .
git commit -m 'feat :提交'
git push origin 分支名
解决方案:
方案一:确保你的~/.ssh/config
包含以下内容:
Host gitlab.com
UpdateHostKeys no
方案二:可以试试重新重新生成公私钥