Setting Correct Permissions on the Private Key

Important: For the private key to be usable with the ssh command on Windows, it must have the correct permissions.

Only the current user should have access to the private key, otherwise the ssh program will refuse to use the key.

These are the instructions to change the key permissions.

  1. Right-click on the private key file
  2. Select "Properties"
  3. Go to the "Security" tab
    Windows file properties
  4. Click on "Advanced"
    Windows file security tab
  5. Click on "Disable inheritance"
    Windows file advanced security tab
  6. Select: "Convert inherited permissions into explicit permissions on this object"
    Inheritance choice
  7. From the "Permissions entries" list, remove all permissions except the one related to your user
    Permissions list
  8. Finally, click "OK" on the open windows