SSH Key creation

Hey im new to ssh, which was my first project in kodekloud,
i created a keypair in ssh properly yet i dont know why i’ts showing an error,
im pasting a screenshort of my terminal below ,

First of all, it’s helpful to know what lab you’re trying to do, since there are differences whether this is a stand-alone key pair or if this is one of the cloud-based labs.

Most likely, you need to create the key pair locally at the default location, which is /root/.ssh/id_rsa. You’d do this will just ssh-keygen with no arguments. You’d then need to upload the public key to the cloud, the details of which would depend upon what lab you’re doing.