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



