Permissions 0644 for 'MykeyPair.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. code example
Example: Permissions 0644 for are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored
chmod 600 ~/.ssh/id_rsa