Objectives

In this lab, you will:


Task 1: Use SSH to connect to an Amazon Linux EC2 instance


Task 2: Update your Linux machine

In this task, you use the yum package manager to update and upgrade the machine, including relevant security packages.

NoteYou may have to use sudo to complete this task if you are not root.

  1. To validate that you are in the companyA home folder, enter pwd and press Enter.

    If you are not in this folder, enter cd companyA and press Enter.

  2. To query repositories for available updates, enter sudo yum -y check-update and press Enter.

  3. To apply security-related updates, enter sudo yum update --security and press Enter.

Untitled

To apply security-related updates, enter sudo yum update --security and press Enter.

Untitled

To update packages, enter sudo yum -y upgrade and press Enter.

Untitled