title: SSH: Windows : Git/Gerrit : No matching key exchange method found - Their offer diffie-hellman-group1-sha1
body: <p>I have my Git/Gerrit set up on my Ubuntu PC and the below worked fine.   However, I am trying to do the same on my Windows PC, but it fails to clone the repository saying - 
  <em>"Unable to negotiate with 55.115.127.145 port 9418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
  fatal: Could not read from remote repository."</em></p>
  
  <p>Adding below in ~/.ssh/config: doesn't work too ! </p>
  
  <pre><code>Host your_email@lab126.com
                KexAlgorithms +diffie-hellman-group1-sha1
  IdentityFile ~/.ssh/id_rsa
  
  Host 55.115.127.145
      HostName 55.115.127.145
      User &lt;myname&gt;
      Port 9418 
                    KexAlgorithms +diffie-hellman-group1-sha1
      IdentityFile ~/.ssh/id_rsa
  </code></pre>
  
  <p><strong>Below are the detailed steps I followed:</strong><br>
  1) Downloaded and installed Git from <a href="http://git-scm.com/downloads" rel="nofollow noreferrer">http://git-scm.com/downloads</a><br>
  2) <strong>Setup Your Git Username and Email</strong></p>
  
  <pre><code>git config --global user.name "FirstName LastName"
  git config --global user.email "your_email@lab126.com"
  </code></pre>
  
  <p>3) <strong>Set up RSA key</strong>
     ssh-keygen -t rsa -C "your_email@lab126.com
     Generating public/private rsa key pair.
     Enter file in which to save the key <strong>(/Users/username/.ssh/id_rsa):</strong> 
     Enter passphrase (empty for no passphrase): <br>
  4) Public Private keys saved in <strong>(/Users/username/.ssh/id_rsa)</strong> and (/Users/username/.ssh/id_rsa.pub) files<br>
  5)  <strong>Set Up Gerrit :</strong> 
      Login to <a href="https://e-gerrit.lab.net/" rel="nofollow noreferrer">https://e-gerrit.lab.net/</a><br>
  6) In Gerrit, Select settings -> SSH Public Keys -> Add Key -> Copy &amp; Paste Public Key<br>
  7) Open cmd line and clone the repository</p>
  
  <pre><code>C:\Git&gt;git clone ssh://e-gerrit.lab.net:9418/framework -b test  
  </code></pre>
  
  <p>8) Add config file in ~/.ssh/ as above</p>