(spoiled) 100 days of Cloud(AWS) - Day 22: Configuring Secure SSH Access to an EC2 Instance ISSUE

Hi, i am facing issue with this lab (Day 22: Configuring Secure SSH Access to an EC2 Instance), I have tried the task multiple times but still facing the same issue, i can connect to the root account using the private key I created on the aws-client, whether I modify the EC2 sshd_config file or i have the same error.

how i processed:
-create the EC2 instance with the good name and without creating a keypair (login)
-On the lab machine, I created a private and public key pair

-then i copy my keypair.pub on the EC2 /root/.ssh/authprozed_keys

-and finaly, I connect myself to the root account with the private key:

Result:

I did it aswell with touching the sshd_config file:
PermitRootLogin yes
PubkeyAuthentication yes

even if it’s not necessary to connect myself with the private key, the result is still the same

I think the grader is not accepting your imported ssh key – I’ve tried this as well, and can confirm the grader does not accept your reasonable solution. So I’ve posted a bug against the task. We’ll tell you when they fix this.

Hi @VincentJ ,

Thanks for pointing this out. Could you please use the default key name? I’ve asked the team to update the instructions to make them clearer.

Regards,

Hi @Tej-Singh-Rana

I’m not sure what you mean by the default key name, but I assume you mean naming the key “id_rsa”. If that’s the case, it’s still not working.

What is the path where the key is saved?

My key was in “/root”. I tried again, but this time I put my key named “id_rsa” in the"/root/.ssh/" path, and it worked.

Thank you