Upload an existing key to the Lightsail console - Amazon Lightsail

Upload an existing key to the Lightsail console

Use the following procedure to upload an existing key to the Lightsail console. You can upload a key from the SSH keys management page in the Lightsail console, or when creating a new instance.

SSH keys management page

Complete the following procedure to upload a custom key pair from the SSH keys management page in the Lightsail console.

  1. Sign in to the Lightsail console.

  2. On the on the top navigation pane, choose the user profile icon.

  3. Then, choose Account in the dropdown menu.

  4. Choose Upload key under the Custom keys section of the page.

  5. In the Select a region prompt that appears, choose the AWS Region in which you want to upload your new custom key. You will be able to configure your new custom key on new instances in the same AWS Region.

  6. Select Choose File in the Upload a public key prompt that appears.

  7. Find the public key on your local machine, and choose Open. The public key of the key pair is the file with a .PUB file extension.

  8. Choose Upload key.

  9. Your key is now listed in the Custom keys section of the page.

Create instance workflow

Complete the following procedure to upload a custom key pair as you are creating a new Lightsail instance.

  1. Sign in to the Lightsail console.

  2. Choose Create instance.

  3. On the Create an instance page, choose Change SSH key pair.

  4. Choose Upload new.

  5. Lightsail displays the AWS Region where you're creating the new key. Choose Create.

  6. Choose Choose file to find the key on your local machine. Be sure to upload a public key (not a private key). For example, github_rsa.pub.

  7. Choose Upload key.

  8. Continue creating your instance.