AWS/EC2 Tutorial 1
--D. Thiebaut 20:39, 22 June 2010 (UTC)
Contents |
This tutorial illustrates the steps needed to create an EC2 Instance on AWS, connect to it, and setup Filezilla to transfer files to it. Also covers how to install new software on the EC2 instance. |
Rough Steps
- login to AWS
- create Instance
- create new key pair at same time and store private key file (dft.pem) on local machine
- on AWS console, click on running instance, and pick "Connect" from menu
- use ssh command line, of the form
ssh -i dft.pem root@ec2-75-101-185-167.compute-1.amazonaws.com __| __|_ ) Fedora 8 _| ( / 32-bit ___|\___|___| Welcome to an EC2 Public Image :-) Base --[ see /etc/ec2/release-notes ]-- [root@domU-12-31-38-04-AD-93 ~]# pwd /root
- Install Filezilla for file transfers
- follow steps from the instructions from cybersprocket.com to setup Filezilla with the pem file downloaded earlier. By default EC2's do not allow keywords for access, only authentication files.
- if that doesn't work (it sometimes doesn't), use rsync to transfer files to the EC2 instance. (Reference = alestic.com)
cd cd .ssh (where dft.pem resides) rsync -Paz --rsh "ssh -i ./dft.pem" ../352/ root@ec2-75-101-186-202.compute-1.amazonaws.com: