Key Pair Management Function

You can create and register a key pair for logging in to the virtual server via SSH. You can also import a key pair that was created externally.

When you register the key pair by following the procedure below, you can acquire the key file for SSH authentication (*.pem). You can use the key file for SSH authentication (*.pem) to easily log in to a virtual server.

  1. When you create the virtual server, specify the key pair that you have registered, and obtain the key file (*.pem).
  2. On the SSH client software side, set the acquired key file (*.pem).

  3. Log in to the virtual server via SSH connection.
Important: Exercise appropriate caution when you manage the key file.

Creating and Importing a Key Pair

Specify the key pair name and create the key pair. You can also specify a public key that was created with ssh-keygen or other tools to register the key pair.

Note: We recommend you create a key with a passphrase if you use an external tool to create the key pair.
Note: If a virtual server is created using a key pair that has a key pair name that includes blank spaces, a virtual server for which login is not possible will be created. Ensure that key pair names do not include blank spaces.
Table 1. List of Key Pair Settings
Item Description Required
Key Pair Name Specify the name of the key pair.  
Public Key String Specify the public key string that you created with an external tool  

Example of Creating a Key Pair with a Passphrase

The information entered for the Public Key String is the information of img_rsa.pub, which is created in "Example of Creation of Key Pair with Passphrase"

Below is an example of using ssh-keygen to create a key pair with a passphrase.

$ ssh-keygen -t rsa 
Generating public/private rsa key pair. 
Enter file in which to save the key (/home/user1/.ssh/id_rsa): /tmp/img_rsa Enter passphrase (empty for no passphrase): Enter passphrase 
Enter same passphrase again: Enter passphrase 
Your identification has been saved in /tmp/img_rsa. 
Your public key has been saved in /tmp/img_rsa.pub. 
The key fingerprint is: 
6e:d0:(omitted):c0:8b user1@LinuxImgDev 
The key's randomart image is: 
(omitted)

Deleting a Registered Key Pair

You can delete key pairs that are no longer needed.