Task Passwordless authentication for root user on EC2 (AWS level 2) fails even after getting the desired output please help!

The reason it failed on your first attempt after my solution is that you did not accept the defaults for the keypair. Since the question did not state that you should name the keypair, the grader is not execting to do ssh -i

No worries!!

Uh oh! Looks like the task was not completed successfully. But it’s Ok. You can try again next time this task is assigned to you.

![](data:image/svg+xml,%3csvg%20width=β€˜34’%20height=β€˜34’%20viewBox=β€˜0%200%2034%2034’%20fill=β€˜none’%20xmlns=β€˜http://www.w3.org/2000/svg’><circle%20cx=β€˜17’%20cy=β€˜17’%20r=β€˜17’%20fill=β€˜%23EF4444’%20fill-opacity=β€˜0.08’/><circle%20cx=β€˜16.9999’%20cy=β€˜17.0004’%20r=β€˜13.6’%20fill=β€˜%23EF4444’/><path%20d=β€˜M21.1391%2013.6941L20.3054%2012.8604L17%2016.1657L13.6946%2012.8604L12.8608%2013.6941L16.1662%2016.9995L12.8608%2020.3049L13.6946%2021.1386L17%2017.8332L20.3054%2021.1386L21.1391%2020.3049L17.8337%2016.9995L21.1391%2013.6941Z’%20fill='white’/%3e%3c/svg%3e)

 SSH access is not configured correctly for instance devops-ec2

You may check your work again to see what went wrong. The environment expires in 5 minutes.

If you think you did your work correctly and is marked failed, you may request for a review from your task dashboard. Or alternatively please submit outputs/screenshot(s) of your work and post to community.kodekloud.com

Same for me everything is right but not sure why it shows failed can some one help me urgently

[root@ip-172-31-19-118 ~]# ssh [email protected]
The authenticity of host β€˜54.83.98.36 (54.83.98.36)’ can’t be established.
ED25519 key fingerprint is SHA256:gYyVacyQPjP2pw0HK8zJCgQg9jyCRNz/MBT2p89tlSk.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added β€˜54.83.98.36’ (ED25519) to the list of known hosts.
, #_
~_ ####_ Amazon Linux 2023
~~ _#####
~~ ###|
~~ #/ ___ Linux for the Cloud – Amazon Linux 2023 – Amazon Web Services
~~ V~’ β€˜->
~~~ /
~~._. _/
_/ _/
_/m/’
[root@ip-172-31-19-118 ~]# cd /root/.ssh/
[root@ip-172-31-19-118 .ssh]# ls -lrt
total 20
-rw-r–r–. 1 root root 588 Dec 16 14:16 id_rsa.pub
-rw-------. 1 root root 2622 Dec 16 14:16 id_rsa
-rw-------. 1 root root 588 Dec 16 14:18 authorized_keys
-rw-r–r–. 1 root root 93 Dec 16 14:18 known_hosts.old
-rw-------. 1 root root 266 Dec 16 14:18 known_hosts