O'Reilly logo

OpenStack Cloud Computing Cookbook by Kevin Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and managing keypairs

Keypairs refers to SSH keypairs and consists of two elements—a public key and a private key. Only this specific combination of the public and private key will allow us access to our instances.

Getting ready

To begin with, ensure you're logged in to your Ubuntu client that has access to the euca2ools and Nova Client tools. These packages can be installed using the following commands:

sudo apt-get update
sudo apt-get install euca2ools python-novaclient

How to do it...

To create a keypair, we run the euca-add-keypair command when we're using euca2ools, or nova keypair-add when using Nova Client. We name the key accordingly, which we will subsequently refer to when launching instances. The output of the command is the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required