There are many questions about the following error, but they all have the same solution, which has no effect:
$ git push Unable to negotiate with 192.168.XXX.XXX: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
There is an article on openssh.com that did not help. In particular, it was suggested:
... in the file ~ / .ssh / config:
Host somehost.example.org KexAlgorithms +diffie-hellman-group1-sha1
I did just that. I assume ~ allows %userprofile% on windows. My file is located in C:\Users\MY_USERNAME\.ssh\config :
## use kex algorithm ## Host 192.168.XXX.XXX KexAlgorithms diffie-hellman-group1-sha1
As a result, nothing has changed. There is also a suggestion to use ssh -o , but I still have to find an answer that makes it difficult to describe how you do it. I tried this:
$ ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
I need to connect to this GIT repository. I'm on the windows. The repository uses Gerrit. I also use SourceTree and it has no issues with clicking in the repository . This way the repository works, but GIT or openSSH in my bash is broken.
What did I do wrong that this solution did not work for me?
source share