Using “KexAlgorithms diffie-hellman-group1-sha1” did not resolve “no matching key exchange method found” error

后端 未结 5 656
挽巷
挽巷 2021-01-04 17:43

There\'s a lot of questions about the following error, but they all have same solution which did not have any effect:

$ git push
Unable to negotiate with 192         


        
5条回答
  •  再見小時候
    2021-01-04 18:31

    I started getting this error after updating to "git for windows" to version 2.25.1 This algo was deprecated by GitHub in Feb. of 2018.

    @Kenster's comment on "use ssh -vv ..." to see where your config files live was key. My home drive in windows is a network drive so my default .ssh folder is on that network volume.

    Adding a file called "config" to that folder with:

    Host 127.0.0.1
    Port 2222
    KexAlgorithms +diffie-hellman-group1-sha1
    

    allowed me to connect to my vagrant environment again.

提交回复
热议问题