HOW TO CREATE AND CONNECT TO A LINUX VM USING A PUBLIC KEY.
Tags: linux, create, public
Published: 2024-06-20 16:59:26

**## INTRODUCTION**
Just like creating your Azure windows VM, the Azure linux is slightly similar from the begin at which you create your basic settings all through your network before they are then subsequently DEPLOYED,it is at this point your generated ip address is used with your ssh server is used to create a PUBLIC AZURE LINUX VM.


## **TABLE OF CONTENT**

1.LOG INTO YOUR AZURE PORTAL.
2.CLICIK ON VIRTUAL MACHINE.
3. CLICK ON CREATE.
4. SET UP OF YOUR OVERVIEW PARAMETERS.



## **CLICIK ON VIRTUAL MACHINE.**

This is the second step in the creation of your AZURE LINUX PUBLIC VM, there are varioys ways to click on the virtual machine.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/va4fgogemj1i1ovpgtmz.png)

## **CLICK ON CREATE**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vsrxvkx630g1pmaimsef.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mklyqeibwwfhk6fygwtp.png)

<u>**## SET UP OF YOUR OVERVIEW PARAMETERS.**</u>

![VIRTUAL MACHINE](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nwsh4oxc52l1ayprsr2a.png).

TO set up your basic parameters , you must create a virtual machine name, in this instance our VM name is AGANALINUX3VM , Please note that the region you select will determine what Azure will charge (US REGION ARE USUALLY CHEAPER. 

Some zones will give you the options of having access to all **security type** lock up list while some are restricted to few, in this instance we will be using the UBUNTU SERVER 20.04 LTS-x64 GEN2 linux operating system.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hpo1ljrjf1pxt0354seq.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m8triyz0in0mlexvhmds.png)

USER NAME AND PASSWORD NEEEDS TO BE CREATED , BECAUSE THEY WILL BE NEEDED WHEN WORKING ON OUR CMD OR WINDOWS POWER SHELL TERMINALS.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/31nuiqx8gg8rlbv02j3h.png)

CLICKING ON OUR** CREATE AND REVIEW** BUTTON WILL HELP CHECK SET-UP PARAMETERS THAT NEEDS ATTENTION AND ADJUSTMENT , PLEASE NOTE FOR THE PURPOSE OF THIS WRITE-UP WE WILL BE USING DEFAULT SETTINGS FOR OTHERS EXCEPT DEPLOYMENT RECOMMENDATION ADVICE OTHERWISE.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xmndfa5hdbejws2gzoly.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mp1a95n962upiw6j827q.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q8rrhvbjwm0y14laveny.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wg7l14i9hwyrsylyxic0.png)

After clicking on the review and create button if all parameters are right, your VM settings will **PASS VALIDATION**, While an estimated cost will be published, please note that this is not your final cost.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hrjp4bh4v0z4a5db401o.png)

N.B
**PLEASE MOTE THAT IF YOUR PARAMETER SETTING STOPS AT THIS POINT DUE TO POWER OUTAGE YOUR COST WILL BE RE-ESTIMATED AND IT WILL CHANGE**.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lu7rs90xdg7vsa342l2x.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1dx0vqii0gouuaslpedx.png)

**AFTER THE CREATION AND REVIEW IS COMPLTED THE FOLLOWING SETTINGS WILL BE ON THE DISPLAY FOR ONWARD REVIEW**.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t8xolfrhyv2z2j0d3h3s.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ebzyqkmdp4qo64nurxor.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y0ae2flqtkfna51tutyo.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pt6bxhj1z7kg7sry6iow.png)

**THE NEXT STEP IS TO CLICK THE CREATE BUTTON AND ALL THE RESOURCES CREATED WILL BE DEPLOYED.
**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1b1qq9b3pny9p5zld3ui.png)

AFTER YOUR DEPLOYMENT IS COMPLETE CLICK ON GO TO RESOURCES TO START YOUR CMD OR WINDOWS POWER SHELL LINUX COMMAND DEPLOYMENT.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjuqt1wxf604xrn8xtah.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ympqim85jhv8pztv70q.png)


**GO TO YOUR WINDOWS LOG-ON AREA TO SEARCH FOR YOUR CMD OR POWER SHELL , CLICK ON EITHER OF THE TWO TO ENTER INTO YOUR DOS ENVIRONMENT AT WHICH OF LINUX COMMANDS WILL BE DEPLOYED.
**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kgp24z4os7910gpjazu4.png)

**ENTER THE FOLLOWING TO START UP THE LINUX PROCESS.**
(1)SSH
(2)USER NAME AND 
(3)IP ADDRESS in the seququence below
>space SSH space Aganalinux@172.191.17.145 **enter

> SSH Aganalinux@172.191.17.145


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iac3j2zjn2qczfa9rs7a.png)


**TYPE IN YOUR PASSWORD TO LOG YOU ON INTO YOUR LINUX VM , PLEASE NOTE BTHAT THE PASSWORD WILL NOT SHOW AND IT IS PREFERRABLE TO TYPE IN YOUR PASSWORD RATHER THAN COPY AND PASTE.
**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hdcicz3x1dbi9vw3dyu9.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4t71mtpxdsw5r4aorkf.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4u3bzhxgce4rykhxhb9f.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qq5et93r8i7ls34zqbxl.png)


## **SUMMARY**
**ONCE THE LINUX LOOP IS LOG-ON THE USER CAN THEN DEPLOY OTHER COMMAND BASED ON WHAT HE OR SHE NEEDS TO CREATE.**