Create and manage key pair
A key pair is a key used to verify credentials when connecting to an instance, and it consists of a public key and a private key.
The public key is stored on the instance, and the private key is stored and managed directly by the user. Because anyone who has the private key can connect to the instance, the user who created the private key must keep it secure.
| Key pair component | Description |
|---|---|
| Public key | Public key registered and managed on the instance to secure instance access - Can be checked in Virtual Machine > Key pair > [⋮] button > View public key |
| Private key | Key stored and managed directly by the user to connect to the instance - Required when connecting to an instance through SSH - Can be downloaded only once at creation ⚠️ Because anyone who owns the private key can connect to the instance, please take care with security management. |
Create new key pair
You can create a new key pair.
-
Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
-
In the Key pair menu, click the [Create key pair] button.
-
In the pop-up window, select Create new key pair, enter the information, then click the [Create] button.
-
When the key pair is created, the
{key pair name}.pemprivate key file is downloaded automatically.
Create key pairCategory Description Name Enter the key pair name
- Example: keypair-01_01
- Duplicate key pair names cannot be used within the same projectType setting Both types consist of a pair of a public key and a private key
-SSH: Authentication key used in systems that use the SSH protocol
-X509: Digital certificate used in the SSL/TLS protocol, which is a public key-based encryption technology (planned)
Upload existing key
If an existing key file is available, you can upload the key and register it as a key pair in KakaoCloud.
- Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
- In the Key pair menu, click the [Create key pair] button.
- In the Creation method of the pop-up window, select Upload existing key.
- In File information, either enter the key information directly or click the [Upload file] button.
Category Description Name Enter the key pair name
- Example: keypair-01_01
- Duplicate key pair names cannot be used within the same projectType setting Both types consist of a pair of a public key and a private key
-SSH: Authentication key used in systems that use the SSH protocol
-X509: Digital certificate used in the SSL/TLS protocol, which is a public key-based encryption technology (planned)File information Upload file: Register the downloaded key pair file
- Uploadable extension:pub
- Enter directly box: Enter the content in the key file directlyinfoIf you only have a
.pemkey file, you can create a.pubfile with the following command on macOS or Linux. You can upload the created.pubfile or copy and paste its content.Create .pub filessh-keygen -y -f {YOUR_KEY}.pem > {YOUR_KEY}.pub - Click the [Create] button.
View key pair list and basic information
You can view the list of key pairs in use and their basic information.
- Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
- In the Key pair menu, check the key pairs currently in use.
Category Description Name Key pair name Type Key pair type
-SSH: Authentication key used in systems that use the SSH protocol
-X509: Digital certificate used in the SSL/TLS protocol, which is a public key-based encryption technology (planned)Created at Creation date and time of the key pair [⋮] button Button to run features for each item
- View fingerprint: View the fingerprint of the key pair
- View public key: View the public key of the key pair
- Delete: Only key pairs registered by yourself can be deleted
View key pair details
You can view the fingerprint and public key of the key pair.
- Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
- In the Key pair menu, click the [⋮] button of the key pair, then check the details.
Category Description View fingerprint View the fingerprint, which is the unique identifier of the key pair
- The fingerprint is used to verify that the key pair is registered correctly or to compare whether it is the same key.View public key View the public key value registered in the key pair
- This information is needed when accessing an instance or checking the key.
View fingerprint
You can view the fingerprint of the key pair, which is used as the unique identifier of the public key.
- Go to Compute > Beyond Compute Service > Bare Metal Server in the KakaoCloud console.
- In the Key pair menu, select [⋮] button > View fingerprint for the key pair you want to view.
- In the pop-up window, check the fingerprint of the key pair.
- To copy it, click the [Copy] button to save it to the clipboard.
View public key
You can view the public key of the created key pair.
- Go to Compute > Beyond Compute Service > Bare Metal Server in the KakaoCloud console.
- In the Key pair menu, select [⋮] button > View public key for the key pair you want to view.
- In the pop-up window, check the public key.
- To copy it, click the [Copy] button to save it to the clipboard.
Delete key pair
You can delete a key pair that is no longer in use.
- Deleted key pairs cannot be recovered.
- If you delete a key pair, you can no longer access new instances with that key pair.
- Go to Compute > Beyond Compute Service > Bare Metal Server in the KakaoCloud console.
- In the Key pair menu, select [⋮] button > Delete for the key pair you want to delete.
- In the pop-up window, enter the confirmation text, then click the [Delete] button.