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.

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