title: OpenSSH SSH-2 private key (old PEM format) on Azure Linux VM
body: <p>I've been using Puttygen to generate SSH Key pair for Azure Linux VM.
  recently i found openssh is available on Windows 10 and i can use "ssh-keygen" command on Windows 10 CMD and generate Private and Public Key.</p>
  
  <p>I've tried this but with unsuccessful attempt.</p>
  
  <p>As per the article <a href="https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ssh-from-windows" rel="noreferrer">click here</a> ask us to use below command and it completes successfully. It exports private and public key in a location. But when i load the private key in putty and connect to my server it throws error </p>
  
  <pre><code>Unable to use key file "C:\publickey\id_rsa.ppk" (OpenSSH SSH-2 private key (old PEM format))
  login as:
  </code></pre>
  
  <p>Below is the command which i used to generate key pairs on windows 10</p>
  
  <pre><code>C:\Users\xxx&gt;ssh-keygen -t rsa -b 2048 -C "azureuser@vm"
  Generating public/private rsa key pair.
  Enter file in which to save the key (C:\Users\xxx/.ssh/id_rsa): C:\publickey\id_rsa.ppk
  Enter passphrase (empty for no passphrase):
  Enter same passphrase again:
  Your identification has been saved in C:\publickey\id_rsa.ppk.
  Your public key has been saved in C:\publickey\id_rsa.ppk.pub.
  The key fingerprint is:
  </code></pre>
  
  <p>Has anyone tried this method on windows 10 to generate keys?</p>