Git clone 报错 Unable to negotiate with xxx.xxx.xxx.xxx port 12345: no matching cipher found. Their...
最近升级了 Git, 发现 Push、Pull 不了了, 上网查了下,是 openSSH8.8 不支持RSA算法,而git服务器只支持RSA,所以和服务器连接不上,本质上是加密算法的问题。
所以就算重新生成密钥 ,也是会有问题的,因为你生成密钥肯定是拿到Git服务器上,那就RSA,而openSSH 不支持,所以没用。
解决: 让连接支持 RSA 算法,进入到 C:\users\username\.ssh\ 中,如果没有则创建一个 config 文件,进入后,配置下面信息
Host *
KexAlgorithms +diffie-hellman-group1-sha1
最近升级了 Git, 发现 Push、Pull 不了了, 上网查了下,是 openSSH8.8 不支持RSA算法,而git服务器只支持RSA,所以和服务器连接不上,本质上是加密算法的问题。
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa