While trying to login to an Amazon cloud server from my Mac, with the following command:
ssh -i register.pem username@myamazonserver.amazonaws.com
I got this error message:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for 'tmn_register.pem' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: tmn_register.pem Permission denied (publickey).
Apparently, the permissions on the filesystem for the key file that was given to me were too secure. I changed the permissions to disallow all access except me and all was well.
chmod 600 register.pem
Post a Comment