Problem in lab 12 of azure section, level 1

it is written that ssh connection not established, while - i was already connected. please check screen below and advise what is my mistake.

You need to be able to login(ssh) as root, not azureuser.

You need to set up SSH with the root user as described in the task.

@raymond.baoly - thank you for a reply. this is noted. will do so.

This is such a poorly written prompt.

In plain English:

Azure Client Host = this local terminal
Nautilus-vm = virtual machine deployed in azure

Just tell them they are copying their SHH Public Key fount at (/root/.ssh/id_rsa.pub)

Using SSH to log into a virtual machine named nautilus-vm

pasting that public key into the authorized_keys file
(root@nautilus-vm:/home/azureuser/.ssh/authorized_keys)

Adjusting Permissions:

chmod 640 ~/.ssh/*

Then using the root account to SSH into the nautilus-vm (Virtual Machine)

Hi Srikanth,

I have done the following steps:

  1. ssh-copy-id -i /root/.ssh/id_rsa.pub root@
  2. ssh azureuser@
  3. chmod 640 ~/.ssh/*
  4. exit
  5. ssh root@

Still it says - Please login as the user “azureuser” rather than the user “root”.

did i miss anything. Could you please help me on this

Hey @stalinraja.sachin,
Were you able to figure it out already?

If not, try checking the contents of the authorized_keys file content of root user on the VM. That should give you an idea as to why it says - Please login as the user “azureuser” rather than the user “root”.

1 Like

yes Srikanth, i foundout. thanks.

Thank you, this fixed it for me too.