Wednesday, November 20, 2013

Installing Debian Wheezy in Amazon EC2

Installing Debian Wheezy in Amazon EC2

1. Go to the website of debian and look for the official AMIs.

https://wiki.debian.org/Cloud/AmazonEC2Image/Wheezy#A7.2


2. Get the AMI that you want and use it in ec2.

Example: ami-537f1b52


3. Go to the AMI and enter the ami id above in the search field.


4. Select the AMI and click Launch.



* Configure your instance on how you want it to be.

5. Once launched. Go to your Instances tab, select the instance, right-click then click on start.


6. To Connect to your running instance, follow the instructions below.

To access your instance:

Open an SSH client. (find out how to connect using PuTTY)

Locate your private key file (yourkeypair.pem). The wizard automatically detects the key you used to launch the instance.

Your key must not be publicly viewable for SSH to work. Use this command if needed:
chmod 400 yourkeypair.pem

Connect to your instance using its Public DNS:
ec2-12-123-45-67.ap-northeast-1.compute.amazonaws.com

Example:
ssh -i yourkeypair.pem admin@ec2-12-123-45-67.ap-northeast-1.compute.amazonaws.com