PrepAway - Latest Free Exam Questions & Answers

A user is trying to connect to a running EC2 instance using SSH. However, the user gets an Unprotected Private

A user is trying to connect to a running EC2 instance using SSH. However, the user gets an Unprotected Private Key File error. Which of the below mentioned options can be a possible reason for rejection?

A. The private key

file has the wrong file permission

B. The ppk file used for SSH is read only

C. The public key file has the wrong permission

D. The user has provided the wrong user name for the OS login

Explanation:

While doing SSH to an EC2 instance, if

you get an Unprotected Private Key File error it means that the private key files permissions on your computer are too open. Ideally the private key should have the Unix permission of 0400. To fix that, run the command:

chmod 0400 /path/to/private.key

Q


Leave a Reply

Your email address will not be published. Required fields are marked *