I am using microsoft ubuntu terminal to connect to my EC2 instance using PEM keys. According to the suggestions to this question I did change the permission. Even then I am getting the error
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for 'ATG_party.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "ATG_party.pem": bad permissions
ubuntu@ec2-52-39-15-72.us-west-2.compute.amazonaws.com: Permission denied (publickey).
Here is what I have tried...
chmod 600 ATG_party.pem
ssh -i "ATG_party.pem" ubuntu@ec2-52-39-15-72.us-west-2.compute.amazonaws.com
How can I solve this issue. Here is my configuration:
OS : Windows 10
Shell : Microsoft Ubuntu terminal