Task failed to ssh datacenter-vm when I competed it successfully

Assuming this is Task 12 of Azure level 1 in KKE.
I see that that you’re able to ssh to datacenter-vm as azureuser, but I suppose the task requires you to be able to ssh as root.

If you are talking about a different task can you share task details? I will check and let you know.

Ok, I will complete the task as root and see if that works.

The task is asking for me to login as the azureuser

did you edit the authorized_keys file? remove its contents completely and replace it with the public key that you have on your client.

Yes, I finally figured it out. Thank you for your help.