After you have created an EC2 instance at Amazon AWS, you can access the instance via ssh. In order to do so, you need two pieces of information: (1) private key file associated with your instance and (2) public DNS of your instance.

The private key file for your EC2 instance should have become available to you while you went through creating the instance via Request Instances Wizard on EC2 Management Console. During EC2 instance creation, Request Instance Wizard prompts you to choose public/private key pair for your instance (either choose from existing key pairs or create a new key pair).

When you ssh to your EC2 instance, you need to use the same private key that you downloaded from Amazon EC2. You can download a private key only at the very first time you create a new key pair, and you cannot retrieve it later on. So make sure to store the private key in a safe place.

Next, you need to know the public DNS of your instance. For that, go to EC2 Management Console, and click your instance.

Once you obtained the public DNS of your EC2 instance, you can ssh to the instance as follows. I assume that the private key for the instance is named "xmodulo.pem".

Dan Nanni is the founder and also a regular contributor of Xmodulo.com. He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.