HOW TO CREATE A LINUX MACHINE WITH SSH PUBLIC KEY
Olusegun Solomon
Posted on April 12, 2024
A Linux virtual machine (VM) is an additive process that starts with selecting a Linux distribution and obtaining Linux kernel and RAM disk images, and ends with instantiating and running the Linux VM on the user's computer.It basically involved the use of command line to achieve one desired purpose.
STEPS TO CREATE A LINUX VIRTUAL MACHINE
a.Click on virtual machine on azure portal
b. Select your subscription and create a suitable resource group name to the linux virtual machine by clicking create
c Give suitable name for your linux virtual machine
d. select a region for the machine
e. Pick a desired availability zone for the linux virtual machine
f. For Image, Select Unbuntu server
NB: the type of image you select will determine kind of virtual machine that will be created for you in azure.
g. size will be selected for the machine by default. This can be change if needed.
Administrator Account
h. For Authentication type click connect with ssh public key
i. Input the the username you which to use to connect the machine
j. Under ssh public key source: click Generate new key pair.
k. click next to select the disk size
l. click next will you reach review and create
click on review and create
A page will showed up requesting you to generate new key pair
click downloads private key and go to resource
NB; A deployment page will be initiated for you until it become successful.
HOW TO CONNECT THE LINUX VIRTUAL MACHINE
a. Go to resource on the virtual machine page
b. click on connect
c. Copy the Username and IP to a save place such as notepad.
e. Enter the command below into your powershell
f. You will be asked if you want to connect click yes then enter
Posted on April 12, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.