DEV Community

Cover image for How To Create And Connect To A Linux Virtual Machine Using A Public Key
Romanus Onyekwere
Romanus Onyekwere

Posted on

How To Create And Connect To A Linux Virtual Machine Using A Public Key

To do this effectively, you must follow the below steps;

1. Sign up to Azure portal
Image description

2. Click on Virtual Machine

Image description

3. Click on Create
Image description
**

4. On the dropdown. click Azure Virtual Machine
Image description

5. Under the Project details, make sure the right subscription is selected and then choose to Create new resource group and enter LinuxVm

Image description

6.Under Instance details enter LinuxVm for the Virtual Machine Name, and choose Ubuntu Server 20.04 LTS-x64 Gen2 (free services eligible) for your Image. Choose No infrastructure Redundancy required for Availability Option, Select Standard for Security Type and leave the other defaults

Image description

7. Under Administrative account, select Password
8. In Username, enter Moderntech
9. Input your Password

Image description
10. At the Inbound port rule, choose Allow selected ports on the Public inbound port

Image description

11. Review + Create
This is for validation to take place

Image description
*12. * Create.
This is to complete the deployment

Image description
13. Click on Resource

Image description

14. Connect to powershell

Top comments (0)