How to setup AWS EC2 Server with Ubuntu 16.04 OS

How to setup AWS EC2 Server with

All steps for How to setup AWS EC2 Server with Ubuntu 16.04 OS

Step 1: Create your account on aws, if you don’t have an account already and complete the whole process. For this you would need your Credit Card details (because instances will be charged based on the usage, we can use free tier).

Step 2: Login you account

Step 3: you should choose a region. We will be select EC2 service under Compute.

How to setup AWS EC2 Server with Ubuntu 16.04

Step 4: On the EC2 dashboard, Click on ‘Launch Instance’ button in the section of Create Instance as shown given screenshot

How to setup AWS EC2 Server with Ubuntu OS

Step 5: Choose an Amazon Machine Image (AMI)

Go with Ubuntu Server 16.04 LTS (HVM), SSD Volume Type – ami-0653e888ec96eab9b (64-bit x86) / ami-0b5f1bbaae8cd790f (64-bit Arm)

How to setup AWS

Step 6: Choose an Instance Type

Go with free tier t2.micro instance as given screenshot

How to setup AWS EC2

Step 7: Click on Next configure instance details button and go with default setting and click on Add Storage button , please check screenshot

How to setup AWS EC2 Server with Ubuntu

Step 8: Change storage limit up to 30 GB because only 30 GB is available for free tier

How to setup amazon web server EC2 Server with Ubuntu 16.04 OS

Step 9: Click on Next : Add Tags button

A tag consists of a case-sensitive key-value pair. For example, you could define a tag with key = Name and value = Webserver.

How to setup amazon web server

Step 10: Click on Next : configure Security group

These security group should be added

  1. SSH
  2. All TCP
  3. All UDP
  4. RDP
  5. All traffic
  6. HTTP
  7. HTTPS
  8. Smtps
  9. IMAP
  10. POP3

In source tab , select “Anywhere” as given screenshot

How to setup amazon web server with Ubuntu

Step 11: Launch the instance by clicking on “Launch”. You will be prompted to create and download a private key. This key will allow you to connect to your instances with SSH. If you don’t download this, or delete it somehow, you won’t be able to connect to your cluster. Name it whatever you like, I just use “sshkeyserver.”

Setup aws

Step 12: Click on Launch Instances Button and wait for some time , there will be our new server. There will be a link to access instance

setup amazon web server

Step 13: Add instance name here

how to configure aws server

Step 14: Now we have create a private ip to run web server, instance provide a public IP but we can’t run server on public IP because when we restart the server public IP will change , so follow these step to create Private IP.

Go in left menu : Network & security > Elastic

aws server

Click on Allocate button and a new IP will be allocated and click on close button . Now we have to connect this IP to our instance. So click on Action button and select “Associate address” and follow these steps.

amazon web server

Select instance name and private IP from their respective dropdowns, all the instances name and private ips will be in their respective dropdowns and click on Associate button .

Step 15: How to connect remote instance using putty

As you have downloaded the key pair (which is with .pem extension), we need to generate private key(with .ppk extension) to login to the remote instance using putty.

Download putty and install it in PC , By installing putty, PuttyGen will also be installed. Open the PuttyGen, select “File” -> “Load private key”. It will generate the private key. Save private key to a file by selecting “Save private key”.

How to setup AWS EC2 Server with Ubuntu3

To connect remote server with putty we need hostname of the server. Follow these steps to find hostname from instance.

How to setup AWS EC2 Server with Ubuntu2

Now open Putty , enter host name , to add private key follow these steps

Select the “SSH” and expand under “Connection”, select “Auth” and then load the .ppk file as shown below

You can save the session by giving it a name and clicking on “Save”.

How to setup AWS EC2 Server with Ubuntu1

Click on Open, and “yes” to login to the server.

How to setup AWS EC2 Server with Ubuntu

How to Setup Vista Control Panel on AWS

Please get back to us if you need any help about “How to setup AWS EC2 Server with Ubuntu 16.04 OS”. We provide service to help our customers to setup AWS EC2 Server with Ubuntu 16.04 OS.