Skip to main content

Resolve lost instance key pair

If the key pair for an instance is lost, it cannot be recovered. If the key pair is lost, SSH access becomes unavailable, so you must replace the existing key pair with a new key pair.

Register new key pair

Create a new image by turning the instance that lost its key pair into a Custom image. Then, create a new instance from that image and register a new key pair so that you can reuse an instance with the same configuration as the original instance. After completing this process, you can create an instance that preserves the original instance data and can be accessed through SSH with the new key pair.

info

Even if you change the file system or partition, the data in the volume is not modified or deleted. However, before changing the file system and partition, it is recommended to back up the volume that stores important data so that you can revert the changes if needed. This process helps prevent data loss.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.

  2. In the Instance menu, select [⋮] button > Create image for the instance from which you want to create an image.

  3. In the Create image pop-up window, enter the information, then click the [Create] button.

    Create custom image

  4. Move to the Image menu, then select the Custom image tab.

  5. Select Create instance for the custom image created above.

  6. On the Create instance screen, when the selected Custom image is automatically selected, choose a key pair.

  7. Select an existing key pair or create a new key pair.

  8. In Create instance, enter the remaining information, then click the [Create] button.