title: Invalid public ssh key
body: <p>Trying to follow the instructions on github for <a href="https://help.github.com/articles/generating-ssh-keys" rel="noreferrer">Generating SSH Keys</a> for windows.</p>
  <p>I run <code>ssh-keygen -t rsa -C &quot;my@email.com&quot;</code>, enter passphrase and it appears the SSH key is generated correctly.</p>
  <p>However, when trying to &quot;Add SSH Key&quot; on GitHub it gives me the error</p>
  <blockquote>
  <p>Key is invalid. It must begin with 'ssh-rsa' or 'ssh-dss'. Check that you're copying the public half of the key</p>
  </blockquote>
  <p>The public key generated by Windows looks like this:</p>
  <pre><code>---- BEGIN SSH2 PUBLIC KEY ----
  Comment: &quot;2048-bit RSA, my@email.com&quot;
  *public key*
  ---- END SSH2 PUBLIC KEY ----
  </code></pre>
  <p>Most notably it does not begin with 'ssh-rsa' or 'ssh-dss'. I tried just copying the <code>*public key*</code> part and prepending 'ssh-rsa' to it but I get the same error on GitHub. Any ideas what I'm doing wrong?</p>