I'm trying to SSH the ec2-instance with my terminal where I'm using SSH to connect with the instance but I'm unable to do so. I'm getting the below error,
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'xxjsxxxx.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 "xxjsxxxx.pem": bad permissions
ecinstance@ec2-22-1xx-1x6-xx7.compute-1.amazonaws.com: Permission denied (publickey).
NOTE: I had obscured the IP address and file name for privacy reasons. That said, can someone help me with this?
Steps that I went through before raising this concern, I had checked the logs and other StackOverflow articles with respect to RSA key-pair value used to SSH but no luck.
Looking forward. Good day!