Unprotected private key file aws ec2

Sometimes when you are trying to connect to an EC2 instance using SSH, you might get “UNPROTECTED PRIVATE KEY FILE!” Error. Your private key file must be protected from read and write operations from any other users. If your private key can be read or written to by anyone but you, then SSH ignores your key and you see this error. To mitigate the issue simply change the permission level to your SSH private key file.

Leave a Reply