HOW TO CREATE A LINUX MACHINE WITH SSH PUBLIC KEY

shaloversal123

Olusegun Solomon

Posted on April 12, 2024

HOW TO CREATE A LINUX MACHINE WITH SSH PUBLIC KEY

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

Image description
b. Select your subscription and create a suitable resource group name to the linux virtual machine by clicking create

Image description
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

Image description
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.
Image description
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

Image description

i. Input the the username you which to use to connect the machine
j. Under ssh public key source: click Generate new key pair.

Image description
k. click next to select the disk size

Image description
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

Image description
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
Image description
c. Copy the Username and IP to a save place such as notepad.
Image description

Image description
d. Open window Powershell

Image description
e. Enter the command below into your powershell

Image description
f. You will be asked if you want to connect click yes then enter

Image description
Image description

💖 💪 🙅 🚩
shaloversal123
Olusegun Solomon

Posted on April 12, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

What was your win this week?
weeklyretro What was your win this week?

November 29, 2024

Where GitOps Meets ClickOps
devops Where GitOps Meets ClickOps

November 29, 2024

How to Use KitOps with MLflow
beginners How to Use KitOps with MLflow

November 29, 2024

Modern C++ for LeetCode 🧑‍💻🚀
leetcode Modern C++ for LeetCode 🧑‍💻🚀

November 29, 2024