Add an SSH Key to an existing server

You cannot directly add an SSH key to a server through the Cloud Server interface (though it is possible via command line).

The easiest way to add an existing SSH key to an existing server is to take a snapshot of the server, create a new server using the snapshot, and then destroying the old server.

Warning: You must stop servers before you can create snapshots. This means while you're taking snapshots, you server cannot process requests.

Take a snapshot

  1. In Cloud Servers, click the server you want to use.
  2. Click Stop.
  3. Click the Snapshots tab.
  4. Enter a Snapshot name, and then click Take snapshot.

Create a new server

  1. Click the Servers tab, and then click Create Server.
  2. Complete the following sections, and then click Finish:
    Option Description
    Choose a Size Select the size of server you want to use. Depending on the size of your snapshot, you might not be able to create a server smaller than the one you used to create the snapshot.
    Choose an Image Click the Snapshots tab, and then select the Snapshot you want to use.
    Security Info Enter a Username for the server.

    Click Connect through SSH instead, and then select the SSH key you want to use.
    Dynamic IP addresses Select any Dynamic IP Addresses you want to attach to this server.

    If you want to use the same Dynamic IP address as the server you used to create the Snapshot, you can assign the IP address to this server after destroying the old one.
    Other Options Select if you want to use Automated backups or Add boot script.

Destroy the old server

Note: Unless you used a dynamic IP address on the old server, you will need to update any domain names to use the new server's IP address. If you used a dynamic IP address, you'll need to assign it to the new server.

  1. Click the old server.
  2. Click the Destroy tab.
  3. Click Destroy twice.

Next step

Was This Article Helpful?
Thanks for your feedback. To speak with a customer service representative, please use the support phone number or chat option above.
Glad we helped! Anything more we can do for you?
Sorry about that. Tell us what was confusing or why the solution didn’t solve your problem.