What am I missing here?
The task was to create a SSH key, and a VM with azureuser as admin that uses this ssh key.
I’ve created the key and the vm and was able to ssh to the vm, however the validation says SSH access to VM failed.
What am I missing here?
The task was to create a SSH key, and a VM with azureuser as admin that uses this ssh key.
I’ve created the key and the vm and was able to ssh to the vm, however the validation says SSH access to VM failed.
Now I am not the Azure man here, but if this question works the same way as the similar AWS question, then you are not expected to create the key pair from inside Azure, and the grader is not expecting to do ssh -i
Create the key pair with ssh-keygen in the lab terminal using default options. Get a terminal on the azure instance from the azure console, then paste the content of ~/.ssh/id_rsa.pub onto the end of the authorized_keys file of the appropriate user in the azure instance.
Then you should be able to ssh to it without using -i to specify a key file.
Hello! I also tried this and it worked. Thank you so much!