Champlain College Classes
HomeTech JournalsPersonal ProjectsSysadmin Wiki
SYS-360: Cloud Admin
SYS-360: Cloud Admin
  • SYS-360: Cloud Admin
  • Breakdown
    • Course Overview
  • Labs
    • Lab 1-1: Accessing the AWS Sandbox
    • Lab 1-2: AWS Learner-Lab Set-Up
    • Lab 2-1: Getting Started with Amazon EC2
    • Lab 2-2: EC2 Web Server
    • Lab 2-3: IAM Console
    • Lab 3-1: AWS with CLI
    • Lab 3-2: AWS EC2 with CLI - Lab 2
    • Lab 4-1: S3 Server-side Encryption
    • Lab 4-2: S3 SSE - Client Provided Keys
    • Lab 4-3: Working with EBS
    • Lab 5-1: LAMP Stack in AWS - Part 1
    • Lab 5-2: LAMP Stack in AWS Part 2
    • Lab 5-3: Setting up WordPress on LAMP
    • Assignment 5-1 Protecting Data in Your Application
Powered by GitBook
On this page
  • When making VM:
  • Install httpd
  • Customize httpd:
  • Creating new user:
  1. Labs

Lab 2-2: EC2 Web Server

PreviousLab 2-1: Getting Started with Amazon EC2NextLab 2-3: IAM Console

Last updated 1 year ago

When making VM:

When making VM make sure 80 and 443 are available to your ip in the security group you make.

Submit: Screenshot of successful SSH connection to instance

Install httpd

sudo yum install httpd
sudo systemctl start httpd

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

Customize httpd:

customize httpd homepage at /var/www/index.html

Submit: Screenshot of successful connection to your custom web page

Creating new user:

sudo useradd paul
sudo passwd paul

# Allow non-key authentication ssh
# https://docs.aws.amazon.com/workspaces/latest/adminguide/connect-to-linux-workspaces-with-ssh.html
sudo sed -E -i 's|^#?(PasswordAuthentication)\s.*|\1 yes|' /etc/ssh/sshd_config
sudo sed -i '/^\s*ssh_pwauth:.*$/d' /etc/cloud/cloud.cfg

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

Submit: Screenshot showing terminated instance

Accidentally customized the webpage before taking this screenshot