Unable to negotiate with 140.211.10.43: no matching key exchange method found

Unable to negotiate with 140.211.10.43: no matching key exchange method found

Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 fatal: Could not read from remote repository.

The problem came into existince while configuring my newly created drupal module using GIT on my local windows machine. everthing goes well till we run the following command:

git push origin 7.x.1.x  OR git push origin 8.x.1.x

we can overcome from the problem by running the following command:

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

But that is not a permanent solutions you have to run the above command on system/git restart, to fix the problem permanently,

locate your .ssh folder and create a file name “config” put the following code in that: 

Host git.drupal.org
KexAlgorithms +diffie-hellman-group1-sha1

Hope it will solve the problem.

Related Screen Shots:

Successfully running example of git from windows command line ( drupal repo )
Successfully running example of git from  mingw64 git client ( drupal repo )

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *