Azure Cloud Issue while checking task completion (Cannot SSH into VM)

For the day 21 task I am not quite sure why the task is not getting completed. The VM has been perfectly provisioned , the NSG Inbound rules are correctly provided, the ssh key has been created in the azure client using ssh-keygen and I am able to ssh to the azure VM using the key. So I am not sure what I am doing wrong here. Could somene plese help with this.
thanks,
Neil

Did you create an PublicIP and associate itto VM?

You can refer to the solution here.

Hi yes, a public ip is associated with the VM during creation time only. Or specifically we need to create a public ip and associate with the VM NIC?

Things to make sure of in this lab:

  • Make sure that you call “ssh-keygen” with just the defaults, so you get a key pair at ~/.ssh/id_rsa.
  • Use the public key from that for the VM
  • Name the IP address as directed in the lab (you may need to use the “next” button to get to the right screen).

This one should be pretty straightforward – it’s not a tricky lab.

Hey, I am new here and for the first task I created the SSH Key. I completed it in the portal, not on the client VM as advised.
It is showing that my task is not completed successfully.

You need to log in to the Azure console using the credentials in the lab.
Then create an SSH Key with the required name.

Hey, I followed the exactly same steps as instructed. logged in to Azure using given credentials and created a SSH key, My last was- Click Review + create and then I downloaded Private key, still I got the message that task is incomplete. So I wanted to know do we have to follow any further steps after downloading it.

If you downloaded the private key (which the grader needs to access the VM!) then you won’t complete the lab successfully. You need to do this instead:

  • Make sure that you call “ssh-keygen” with just the defaults, so you get a key pair at ~/.ssh/id_rsa.
  • Use the public key from that for the VM
  • Name the IP address as directed in the lab (you may need to use the “next” button to get to the right screen).

Only if the private key is on the terminal’s file system at that location will the lab work.