permissions too open to ssh key code example
Example 1: private key is too open
chmod 600 ~/.ssh/id_rsa
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.