Lab 2 2: EC2 Web Server - nicolas-tullio/Tech-Journal GitHub Wiki

Deliverables

Submit: Screenshot of successful SSH connection to instance

image

Submit: Screenshot of successful connection to web service from your workstation browser

image

Submit: Screenshot of successful connection to your custom web page

image

Submit: Screenshot of successful ssh auth to server from your new user

image

Submit: Screenshot showing terminated instance

image

Steps

Step 1: Launch a Free-Tier EC2 AWS instance

Follow Lab 1-1 to create and connect to an EC2 instance

Lab 1-1

Step 2: Install a web service

Edit security group

image

Install and start apache

  • sudo yum update
  • sudo yum install httpd
  • sudo systemctl start httpd

Connect via browser

image

Step 3: Create a custom homepage for your web server

image

image

Step 4: Create a new user on your instance and allow password SSH for that user

image

Restart sshd

systemctl restart sshd

Connect via SSH with new user

image

Step 5: Terminate Instance

image