cant set permission on pem file for aws code example Example: Load key ".pem": bad permissions chmod 400 ~/.ssh/mykeyfile.pem