chmod pem code example
Example 1: Load key ".pem": bad permissions
chmod 400 ~/.ssh/mykeyfile.pem
Example 2: change permissions pem
chmod 400 key.pem
Example 3: chmod for pem file
chmod 400 ~/.ssh/ec2private.pem
chmod 400 ~/.ssh/mykeyfile.pem
chmod 400 key.pem
chmod 400 ~/.ssh/ec2private.pem