0% found this document useful (0 votes)
16 views8 pages

Connection To Linux EC2 Instance

Uploaded by

ivandjt226
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views8 pages

Connection To Linux EC2 Instance

Uploaded by

ivandjt226
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

AWS Solution Architect Training with

AWS Cloud Practitioner Global Certification Training

Trainer: Aravindraj.G- Nminds Academy

How To Create & Connect EC2 Instance in


AWS

Dharshini A
M.sc-Computer Science
VET Institute of Arts and Science (Co-Education) College Erode
Objective 1.1
Create an EC2 instance(linux) and Connect the Amazon-linux instance using command
prompt application in console by specifying the SSH commands to directly decrypt the
private key and to establish connection to instance.

Topology
Step1: Select the linux instance and copy the public IP address.

Step2: Open the command prompt and cd(change directory) to the downloads path.
Step3: Use the SSH command to decrypt the private key(key-pair) and connect to the
linux instance using it’s username(ec2-user) and public IP.

Step4: Then type yes and press enter key.


Step5: The connection to the linux instance has been established. Type “sudo -i” to
login as root user.

Step 6: Type yum update -y(to update linux)..

Step7: Type yum install httpd -y(to install webserver).

Step8: Type systemctl start httpd(To start the http service).

Step9: Type systemctl status httpd(To check the status of webserver).

Step10: Type systemctl enable httpd(to permanently run the web server).

Step11: In security Edit the Inbound rule to add http. Give the source as 0.0.0.0/0 and
click save rules
Step12: To give the directory path type the below command.

❖ cd /var/www/html/.

Add our website Content in Apache Webserver:

Step 13: Open a new notepad and type the html coding and save it as index.html.

Step14: Add users and set password.

Step15: Create group.

Step16: Change group ownership.

Step17: Open Filezilla software on windows.


Step18: Give the Public IP Adrees in the Host, Give username , password , Port
Number as 22 then click Quickconnect.

Step19: Open the index.html file from the /var/www/html/ path.


OUTPUT:

You might also like