Connect with us

Hi, what are you looking for?

Cloud

How to Launch and Connect Linux Server on AWS Amazon Web Services

In this tutorial we will Launch and Connect Linux server on AWS Amazon Web Services. First of all user have to create a EC2 instance. EC2 is a service in Amazon Web Server. Here EC2 is the Amazon Elastic Compute Cloud. Instance is a virtual server in Amazon Web Server Cloud. Instance along with EC2 user can configure the application and set up the environment of operating system (OS). It is a service which gives the permission to run the application or program in the computing environment. Available unlimited virtual machine for user.

Step – 1 : Login to the Amazon Web Server (AWS) Console

Here user can login to AWS with their credentials.login with root account.

As soon as you login to the console you see Amazon management console.

Step – 2 : Select Service EC2

For using the service EC2 . Firstly Go to Services and tap on the service EC2. As soon as you select the service EC2 you see the EC2 Dashboard. In the EC2 Dashboard there is multiple different things is available For ex. Events, Tags, Reports, Instance etc.

Advertisement. Scroll to continue reading.

Step – 3 : Launch the Instance

In today’s tutorial we’ll discussing about the Instance. How to launch the virtual machine. In  EC2 Dashboard go to Instance and it will take us to the part where we can launch the instances. Click on the Launch Instance, as soon as you click on Launch Instance you see the seven step configuration.

 

Step – 4 : Choose An Amazon Machine Image (AMI)

There is already predecided AMI’s available. Apart from the available AMI’s there is AWS Marketplace where you have lot more, there is lots of customized AMI’s available . We are not going to use any customized AMI’s for now, In this tutorial we just going to use FREE TIER ELIGIBLE. If you want to make sure that you were using the free tier only you can  check the free tier only box. After check the free tier box then it shows only free tiers. There is some  free AMI’s available.

There is a AMI called Amazon Linux 2 AMI (HVM), SSD Volume Type – we gonna use this. click on select.

Advertisement. Scroll to continue reading.

Step – 5 : Choose the Instance type

There is multiple Instance types are available like Micro, General purpose, Compute, Memory Optimized, etc. It depends on the user usage. For Practicing choose the t2 micro in general purpose it is free, it has 1 Virtual CPU and 1 GB of RAM.

So Check the t2 micro and click on next.

Step – 6 : Configure Instance Detail

Here you can specify the Number of instance you want, by default there is 1. If the user wants to configure some kind of servers which requires 2 instances then user have to specify in the column. It depends on the user usage. In this tutorial select default.

Purchasing option this option is for spot instance . Spot instance is kind of  a biding system. If user wants a big hardware configurations for a short time period. for ex. for analyzing the data. Because analysis of data not takes the longer time. In simple words a higher configuration in lower price. It is only for small amount of time.

Advertisement. Scroll to continue reading.

Network here user have  to select a VPC (Virtual private cloud), you can create VPC as well and then select that VPC, In this tutorial select the default VPC.

Subnet  you can create subnet as well and then select than subnet, in this tutorial select default subnet.

Auto-Assign Public IP by default it is Enabled because whenever the default subnets are there all subnets have public access

Capacity reservation  here user can reserve the specific configuration servers for specific time. If you reserve any instance that cost very less.

Advertisement. Scroll to continue reading.

IAM role  is the user management system. Identification and Access Management

Shutdown Behavior,whenever user shut down the instance then what is the behavior of that instance choose here. There is 2 options 1. stop 2.terminate If you terminate the system user wont be able to recover it back.

Tenancy : select shared-Run a shared hardware instances.

If you want to run some scripts then use User Data.

Advertisement. Scroll to continue reading.

Click on Next.

Step – 7 : Add Storage

For Linux Instance 8 GB size is sufficient for practicing. User can add more volumes. set the size depending on their requirement , user can choose the volume type.

In this tutorial we choose default selection and do NEXT.

Step – 8 : Add Tags

Choose the add tag button and add the Name tag. In key block add Name and in the value block add anything that user wants. If you want another tag then go to add another tag. user can add tags as per requirement.

Advertisement. Scroll to continue reading.

Further tap on NEXT

Step – 9 : Configure Security Groups

A security group is a set of firewall rules that contain traffic for the instance. In this Step user have to add rules.

Here, user can create new security groups else user can use existing security group. User have to specify the security group name.For Linux port number 22 SSH is always open. This is a practice session that’s why source will be anywhere, after selecting anywhere it adds two entries 1. IPV4 and 2. IPV6 . Description is not mandatory.

User can add some extra ports as per their requirement, For ex, if user wants  HTTP server open then have to add Port 80 rule.

Advertisement. Scroll to continue reading.

Click on Next.

Step – 10 : Review and Launch

It has everything written all the details which user have selected so far. Just check all the things and tap on LAUNCH.

Step – 11 : Selecting Key pair

Amazon web server uses key pairs to encrypt and decrypt login information. Here, user can create a new key pair or user can use existing key pair.

Create a new key pair  and give the name to key pair then tap on Download Key Pair. After download complete just click on Launch Instance.

Advertisement. Scroll to continue reading.

As soon as user tap on Launch Instance, Launch status page is open then just scroll down and hit view instance button. It takes some time to activate running state.

Step – 12 : Connect to the Instance

There is a button called Connect, tap on it.  After that a windows is piping up called Connect to the instance. This windows gives the connection information. From here copy the Linux command. the command having ssh passing the key value and the public DNS of the server.  User need this key and domain to connect.

Step – 13 : Connect using Git bash

User can connect the instance in many ways, here we will connect to instance with Git Bash. Git bash is an application which provides BASH emulation and it is used to run the Git from command line.

When Download completed install this software. It take some time to install. After completing installation just go to where user download the key pair file.(step 11)

Advertisement. Scroll to continue reading.

In my case key file is available in download so just go to download and right click and tap on git bash here. it open the command prompt which ultimately in the download.

Now just paste the command which you copied from AWS. then enter, after that you’ll type yes .

Here, your Amazon Linux Server. Ready to use.

Conclusion : Now you have deployed the Linux server on your AWS EC2 Instance. Now you are successfully ready to launch applications on your Linux server. If you have any issues feel free to use the comment section below.

Advertisement. Scroll to continue reading.
Comments
Advertisement
Advertisement
Advertisement

You May Also Like

Windows

How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...

Windows

Internet is the most important public network for connecting to the WEB. For internet connection requirement the ISP is required as well as it...

Windows

How to download and install the Mobile Intel 4 Series Express Chipset Graphics Drivers for Windows 10.  Windows 10 is the one of the...

Windows

How to Install and Configure PCSX2 on Windows 10. The Windows 10 is the most recommended operating system for the Games. In stream platform...