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.
- When you create the virtual server, specify the key pair that you have registered, and obtain the key file (*.pem).
-
On the SSH client software side, set the acquired key file (*.pem).
- Log in to the virtual server via SSH connection.
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.
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.