title: EC2 Ubuntu Instance - UNPROTECTED PRIVATE KEY FILE
body: <p>I just created an Ubuntu instance on EC2, but when I try and SSH into the machine, I get:</p>
  
  <pre><code>UNPROTECTED PRIVATE KEY FILE!  
  permissions 0644 for 'xxxxx.pem' are too open.
  It is recommended that your private key files are NOT accessible by others.
  This private key will be ignored.
  bad permissions: ignore key: xxxxx.pem
  Permission denied (publickey).
  </code></pre>
  
  <p>In creating the key, you only enter a name (without the option of adding a password). </p>
  
  <p>How can I SSH into the machine without this warning popping up?</p>