Mac - [ec2-user ~]$ chmod 0400 .ssh/my_private_key.pem Windows - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#troubleshoot-unprotected-key