title: Using "KexAlgorithms diffie-hellman-group1-sha1" did not resolve "no matching key exchange method found" error
body: <p>There's a lot of questions about the following error, but they all have same solution which did not have any effect:</p>
  
  <pre><code>$ 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.
  </code></pre>
  
  <p>There is an <a href="http://www.openssh.com/legacy.html" rel="noreferrer">article on openssh.com</a> that didn't help. Particularly this was suggested:</p>
  
  <blockquote>
    <p>... in the ~/.ssh/config file:</p>
  
  <pre><code>Host somehost.example.org
  KexAlgorithms +diffie-hellman-group1-sha1
  </code></pre>
  </blockquote>
  
  <p>I did exactly that. I assume that <code>~</code> resolves to <code>%userprofile%</code> on windows. My file is in <code>C:\Users\MY_USERNAME\.ssh\config</code>:</p>
  
  <pre><code>## use kex algorithm ##
  Host 192.168.XXX.XXX
  KexAlgorithms diffie-hellman-group1-sha1
  </code></pre>
  
  <p>The result is that nothing changed. There is also suggestion to use <code>ssh -o</code> but I'm yet to find an answer that bothers to describe how exactly yo do that. I tried this:</p>
  
  <pre><code>$ ssh -oKexAlgorithms=+diffie-hellman-group1-sha1
  usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
  </code></pre>
  
  <p>I need to connect to that GIT repository. I am on windows. The repository uses Gerrit. I also use SourceTree and it <strong>has no problems pushing into the repository</strong>. So the repository works, but git or openSSH in my bash is broken.</p>
  
  <p>What did I do wrong that this solution didn't work for me?</p>