DEV Community

Cover image for HOW TO CREATE AND CONNECT TO A LINUX VM USING A PUBLIC KEY.
AGANA ADEBAYO .O .
AGANA ADEBAYO .O .

Posted on

HOW TO CREATE AND CONNECT TO A LINUX VM USING A PUBLIC KEY.

## 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.

  1. CLICK ON CREATE.
  2. 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

CLICK ON CREATE

Image description

Image description

## SET UP OF YOUR OVERVIEW PARAMETERS.

VIRTUAL MACHINE.

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

Image description

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

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

Image description

Image description

Image description

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

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

Image description

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

Image description

Image description

Image description

Image description

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

Image description

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

Image description

Image description

*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

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

*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

Image description

Image description

Image description

SUMMARY

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

Top comments (0)