Azure Level 1 Task 12 SSH into an Azure Virtual Machine

Hi,

The public key is already is the authorized key file
cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMb9bSVntvk7iq6eGaeD3IscPp5J4aTJSGoLO+RdKA4oFw0/xS root@azure-client
azureuser@datacenter-vm:~$

and we can ssh to the vm without password. However, the task asks to put the root public key to the authorized key file ?!

Thanks,

Hi @itayara

Yes, you need to add the root user’s SSH public key from the Azure client machine to the VM’s authorized_keys file for the root user. After that, try connecting to the VM as root using SSH to confirm it works. Once verified, the task will be complete.