give permission to pem file code example
Example 1: change permissions pem
chmod 400 key.pem
Example 2: pem permissions setting for ssh
# chmod 400 ~/.ssh/ec2private.pem
chmod 400 key.pem
# chmod 400 ~/.ssh/ec2private.pem