unprotected key file code example
Example 1: WARNING: UNPROTECTED PRIVATE KEY FILE
sudo chmod 600 ~/.ssh/id_rsasudo chmod 600 ~/.ssh/id_rsa.pub
Example 2: It is required that your private key files are NOT accessible by others ubuntu
chmod 400 {keyfile}.pem is what amazon instructed and it works.