Spin Up A Linux Machine In No Time!

Spin Up A Linux Machine In No Time!

Are you someone learning Linux and would love to have a machine spun up on a cloud environment as it would be nice one to learn cloud and Linux simultaneously. Please read on to find out the steps to create a Basic Linux Machine on AWS for learning and training purpose.

Prerequisite:

Create an AWS Account or if you already have one, you are free to make use of it based on the purpose of the account. Here is a quick link of the documentation to follow aws.amazon.com/premiumsupport/knowledge-cen.. Once we have our account ready, we should be good to start.

Steps to create a basic LINUX Machine for Learning and Training Purpose:

  • Login to AWS CONSOLE https://aws.amazon.com/console/

  • Click on “Services” on the top left corner, in the search box, type “EC2” and hit EC2 on the search results returned.

image1.png

  • On the “EC2” service page, click on “Launch Instance”

img2.png

  • Type in a name for the EC2 instance

img4.PNG.jpg

  • Now select the AMI as "Amazon Linux" which is equivalent to RedHatLinux/CentOS

img5.PNG

  • Select the instance type as "t2.micro" which is a free tier eligible and then click on "create new key pair"

img6.PNG

  • Provide a keypair name and select RSA and the private pem file option as shown in the image below

img7.PNG

  • Then click on "create a new key pair"

img8.png

  • The .pem file( private key file for use with SSH) will be downloaded. Please keep it accessible as it is required to be able to access the machine.

img9.PNG

  • Default network settings please check if the connection is allowed for, anywhere on the internet so we could access the machine using SSH. Though this is not the same thing in a production environment

img10.png

  • Check on the storage options and select the magnetic disk as it is more than sufficient for learning purpose

image11.PNG

  • Click on Launch instance to spin up a VM

img13.png

  • Check the EC2 service page to check on the status of the VM that is being created

img14.PNG

img15.PNG

  • Once the VM is fully created and operational, we should be able to see the public IP Address of the machine. This is the IP that can be used to gain access to the machine using SSH

img16.PNG

How to Login to the newly created VM?

I am using MobaXterm https://mobaxterm.mobatek.net/download-home-edition.html to establish SSH Session on to the machine. It is quick and easy to install.

  • Open MobaXterm and select SSH at the top left corner

img17.PNG

  • Copy the Public IP address of the machine that you are trying to access from AWS Console

img18.PNG

  • On the Remote Host Field, type in the Public IP Address of the machine. Default user name for ec2 instance is ec2-user

img19.png

  • Under Advanced SSH Settings . select use private key and upload the .pem file downloaded during the creation of instance and hit ok to gain access to the machine.

advssh.png

img21.PNG

Happy Learning! Hope it helped!

Community and Social Footprints :

Did you find this article valuable?

Support Cloudnloud Tech Community by becoming a sponsor. Any amount is appreciated!