Lab Outline week 9
What you will do in lab
Receive the public/private keypair for your EC2 AMI instance. These serve as the userID and Passwd for your machine instance.
Use SSH to connect to your machine instance, and migrate your MySQL database to your EC2 machine instance.
Use SSH/scp to deploy your home page to your EC2 machine instance.
Attendance is Mandatory
Due to the importance of this information and the fact that we are in week 9, attendance is mandatory and roll will be taken.
Lab Outline
- When your lab instructor hands you the registration sheet, please print your name on it, legibly. Your lab instructor will tell you the name of your keypair file at that time.
If you are working with a partner, you only need one image and one keypair file-- you do not each have to get separate copies.
Your lab instructor will give you the URL of an AMI instance. Open it in your browser.
- Download the keypair file for your image.
Each instance uses a public/private key pair to allow you to log into your instances using ssh without needing to use a password. The public key is packaged into the instance; the private key is stored in a pem-encrypted keypair file.
Download you keypair file to your computer.
- Start SSH and connect to shell.uoregon.edu. Open an FTP window and upload your keypair file to your home directory on shell.uoregon.edu
After the file is uploaded, delete it from the local computer.
Important: Do not forget to delete this file, as it contains the private key for your instance.
- Login to your instance.
From the shell command line, enter this command, using the name of your keypair file and the URL of your instance:
ssh -i 382-kpn root@ec2-67-202-31-249.compute-1.amazonaws.com
- Follow your lab instructor's directions to enable ftp access for your instance.
- Create a new site in Dreamweaver, e.g., 382-ec2. Use ftp access for the remote host (your AMI instance). Install your index.html page in the default directory.