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 file’s 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
A
A