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

后端 未结 5 680
挽巷
挽巷 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:16

    Resolved by using this command I randomly found in some comment thread:

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

    Must be called every time you open the Git Bash. Yeah, git is hell.

提交回复
热议问题