Lab 2.2: EC2 Web Server

When making VM:

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

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