title: Amazon EC2 error " WARNING: UNPROTECTED PRIVATE KEY FILE!" even after changing the permission on Microsoft WSL
body: <p>I am using microsoft ubuntu terminal to connect to my EC2 instance using PEM keys. According to the suggestions to this question I did change the permission. Even then I am getting the error</p>
  <pre><code>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  Permissions 0777 for 'pem_key.pem' are too open.
  It is required that your private key files are NOT accessible by others.
  This private key will be ignored.
  Load key &quot;pem_key.pem&quot;: bad permissions
  ec2-****.us-***.compute.amazonaws.com: Permission denied (publickey).
  </code></pre>
  <p>Here is what I have tried...</p>
  <pre><code>chmod 600 pem_key.pem
  ssh -i &quot;pem_key.pem&quot; ubuntu@ec2-****.us-***.compute.amazonaws.com
  </code></pre>
  <p>How can I solve this issue. Here is my configuration:</p>
  <p>OS : Windows 10</p>
  <p>Shell : Microsoft Ubuntu terminal</p>