EC2StartersGuide


1. Make sure you have multi verse, We need to run this command to install ec2-api-tools

sudo apt-get install ec2-api-tools

2. We need to do some fundamental setup to access AMAZON from our local ubuntu system.
export EC2_KEYPAIR=<your keypair name> # name only, not the file name export EC2_URL=https://ec2.<your ec2 region>.amazonaws.com export EC2_PRIVATE_KEY=$HOME/<where your private key is>/pk-XXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem export EC2_CERT=$HOME/<where your certificate is>/cert-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/

3.Change the permission of .pen keys.

chmod 600 <your keypair name>
4.To connect with amazon:

ssh -i <your keypair name> ubuntu@ec2.<your ec2 region>.amazonaws.com

That's it..........

Links
http://www.robertsosinski.com/2008/01/26/starting-amazon-ec2-with-mac-os-x/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s