Monday, 1 July 2013

Eucalyptus 3.3 Tutorials- Creating Key Pairs

Eucalyptus 3.3 Tutorials
Creating Key Pairs

In this tutorial, we are going to create our first Key Pairs using Eucalyptus User Console and with Euca2ools, the Eucalyptus Command Line tools.

Key Pairs are cryptographic keys used to verify access to a particular instances
Before you can run an instance, you must create a key pair. Creating a key pair generates two keys: a public key (saved within Eucalyptus) and a corresponding private key (output to the user as a character string). 

Using User Console:
Firstly, log on to your User Console with the appropriate Credentials recorded in the earlier steps. 

Next, from the Dashboard, select "Network and Security" >> "Key Pairs"

This will display your existing Key Pairs. By default, Eucalyptus Faststart creates two default key pairs named "admin" and "demo". To create your own Key pair, select "Create new Key Pair" option as shown  

In the "Create New Key Pair" Dialog box, provide a suitable name for your Key Pair and select "Create and Download" once done.

You will have to save this .pem file to your local machine/ client from where you plan to take SSH access to your Eucalyptus Instances.

NOTE: Always keep a copy of this PEM file.

Using Euca2ools:
You can alternatively provision a Key Pair using Eucalyptus Command Line utilities called as Euca2ools.
To create a Security Group, we use "euca-create-keypair"

euca-create-keypair  <key_pair_name> > <key_pair_name>.private
euca-create-keypair TestKeypair > TestKeypair.private 
 Thats all there is to it !! Once all our prerequisites are done, we are now ready to Launch our first Instance