Day 22: Configuring Secure SSH Access to an EC2 Instance

.

i am facing taks faild even I abled to ssh to the root of the instance. authorized key is modified and key is generated in the host itself

Hi @abdosheham

Try creating the ssh keys with default names. Probably, that’s the cause.

EDIT: After logging in to the VM, copy the authorized keys from the ec2-user to the /root user of EC2.