Hi @Harshit Kumar,
Thank you for reaching out to Microsoft Q&A forum.
We see that you are facing an issue during your training on Microsoft Learn path. Please try to follow the instructions below.
Activate a new sandbox and proceed to create the virtual machine according to the exercise instructions. Once task 1 is completed, remember to record the public IP address assigned to VM, for example, 137.135.41.129.
Connect to the newly created VM using ssh in cloud shell. Use the command format to enter the password (Replace the VM public IP address with the actual IP address).
ssh azureuser@<VM public Ip address>
I have done from my end, for your reference I am sharing screenshot as below:

In case the problem persists, please don't hesitate to get in touch with us, and we'll be more than happy to help you.
If the information provided has been helpful to you! then please accept the answer by clicking the “Accept Answer” on the post.
Thank you.