After downloading your .pem file, set its permission to 400. This permission level only allows the owner to read the file while restricting any permissions for groups or other users. For a .pem file, these are the octal permissions that AWS recommends.