aws WARNING: UNPROTECTED PRIVATE KEY FILE code example
Example 1: warning unprotected private key file ec2
sudo chmod 600 /path/to/my/key.pem
Example 2: warning unprotected private key file problem on aws instance
add sudo before ssh and then execute
sudo ssh -i "ma.pem" [email protected]