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

后端 未结 5 660
挽巷
挽巷 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 faced the same issue using Git for Windows 2.27.0.

    Git for Windows brings its own OpenSSH implementation. I had to change the config file C:\Program Files\Git\etc\ssh_config

    Host myhost@example.com
        Port 22
        KexAlgorithms +diffie-hellman-group1-sha1
        KexAlgorithms +diffie-hellman-group14-sha1
    
    

提交回复
热议问题