Connection To Linux EC2 Instance
Connection To Linux EC2 Instance
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.
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/.
Step 13: Open a new notepad and type the html coding and save it as index.html.