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.
Take a snapshot
- In Cloud Servers, click the server you want to use.
- Click Stop.
- Click the Snapshots tab.
- Enter a Snapshot name, and then click Take snapshot.
Create a new server
- Click the Servers tab, and then click Create Server.
- 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.
- Click the old server.
- Click the Destroy tab.
- Click Destroy twice.