unable to negotiate with *.*.*.*: no matching key exchange methodfound. Their offer: diffie-hellman-

After updating the git version on Windows, an error occurred during clone/pull,

unable to negotiate with ...: no matching key exchange methodfound. Their offer: diffie-hellman-group1-sha1

Solution: Before executing git pull/clone, enter:

export GIT_SSH_COMMAND=‘ssh -o KexAlgorithms=+diffie-hellman-group1-sha1’

In this method, you have to re-enter it every time you open the git window.

You can add the following content in the config file of C:\Users\Spring.ssh, [my test is useful]

Host ...
KexAlgorithms +diffie-hellman-group1-sha1

Guess you like

Origin blog.csdn.net/weixin_43704402/article/details/105148333