Share via

Exercise - Create an Azure virtual machine

Shlezinger Shachar 0 Reputation points
2024-01-14T14:03:41.21+00:00

hi how i know mi sudo password?

Azure | Azure Training

1 answer

Sort by: Most helpful
  1. Azar 31,720 Reputation points MVP Volunteer Moderator
    2024-01-14T14:27:31.8866667+00:00

    Hey Shlezinger Shachar

    So, with Azure VMs, you don't really get a traditional "sudo" password. Instead, you use an SSH key pair. The public key is like your virtual ID card stored in Azure, and the private key is like your secret key held on your computer. When you want to connect to your VM, you use your private key to prove it's really you.

    Open a terminal on your local machine.

    bashCopy code
    ssh -i /path/to/private/key.pem username@your_vm_ip
    

    Replace /path/to/private/key.pem with the path to your private key file, username with your Azure VM username, and your_vm_ip with the public IP address or DNS name of your Azure VM. if this helps, kindly accept the answer thanks much.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.