I have an AWS Linux Instance with a LinuxDemo.pem key. I can access it from my own workstation no problem. But if I try and access it from home or if another colleague tries to we get the following result;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'LinuxDemo.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: LinuxDemo.pem
Enter passphrase for key 'LinuxDemo.pem':
Permission denied (publickey).
Now the same command is ran on all workstations - ssh -i LinuxDemo.pem ec2-user@<IP_Address>
How can I make it that a others can access this Instance as this is important.