8. Connect to the infrastructure (done on a per‐lab basis) - AndyGreenPhD/ksu_labs GitHub Wiki

Now that you have created your lab infrastructure, you need to connect to it so that you can do the lab. This process will explain how to do that.

Amazon AWS requires users to connect to EC2 instances using SSH, so you will be using an ssh client to connect to your systems.

This section is written for both Windows and Mac using a single set of instructions.

For Windows users, "terminal" means Command Prompt. The use of $HOMEDIR means your home directory.

Tutorial video can be viewed here

  1. Open a terminal.
  2. Type ssh -i PATH TO YOUR SSH KEY ubuntu@PUBLIC IPv4 ADDRESS. Replace PATH TO YOUR SSH KEY with the full path and filename of your private SSH key that you saved in an earlier step, and replace the PUBLIC IPV4 ADDRESS with the IP address of the EC2 instance you need to connect to for the lab. If you followed the setup directions correctly, your command should look like this. The IP address used here is for example purposes only, be sure to replace it with the IP address you need to use:

Windows: ssh -i "%HOMEPATH%/.ssh/id_rsa" [email protected]

Mac: ssh -i ~/.ssh/id_rsa [email protected]

From here, you now follow the lab assignment document for your class. NOTE: Once you are done with your lab assignment, type exit to leave the EC2 instance you are connected to and return to the terminal on your local system.