The SSH Keys tab is under the second tab titled Security in the Cloud Control Panel. You can view SSH keys that are currently configured and setup, as well create or import SSH keys.
The above example shows the default SSH keys… which is none.
You can have a single SSH key that’s used for every instance you spin up or a unique key configuration for each instance. It’s completely up to you.
Adding a Key
To add a key, first you’ll need to provide a name for the key.
Name: The key name will be the identifier for the key that is imported/created. You can create a key name such as “Default key” or “Tim’s Key” or any other variation for your naming schema.
Make Default: If you make the key the default, the key will be automatically applied to all future instances created. This saves time, not having to worry about storing login credentials. You’ll know the key will be configured on any instance you create automatically. If you wish to do this, simply check the box “Make default.”
Import: Having this checkbox selected indicates you wish to use a pre-existing key that you’ve created yourself. If this box isn’t selected, we will automatically create a key for you and provide you with your private key for usage to access your instances.
Importing a Key
When selecting the checkbox for Import a key, a new text box will appear labeled Public Key. This is where you’ll paste the public key you’d like to import.
Once you’ve pasted your public key information and pressed Create Key, they’ll be displayed with the following output.
Not Importing an existing Key
If you don’t choose to import an existing key, or if you don’t have an existing key, you’ll be provided with a private key on the next screen after you press Create Key.
Now, as you see above, there are 3 stored keys. All 3 are set to default, meaning that they’ll be automatically added to any instance you create.
The display will show the Name of the SSH key, the RSA Finger Print and the option if the key is set to default. For each one, there’s an action button to the right. There, you can show public key, remove key or delete key (explained below).
Show Public Key
You can select the Show Public Key option under the Actions button next to a selected key. This lets you download the public key, or copy its contents, and add it to a server of your choosing manually. (This key is not limited to instances, or Hostwinds!)
You also have the ability to Remove Default, which will make the key selected no longer be treated as a “Default Key.” This means that the key will not automatically be added to future instances. To do so, simply uncheck the box next to the key you no longer wish to have as a default key.
You also have the ability to delete keys, which will remove them from the control panel entirely. To do so, simply select the Actions button next to the selected key and select Delete Key.
You’ll receive a confirmation pop-up box that requests you to confirm the deletion of the key. Pressing Confirm will delete the key.
Adding SSH Keys to Existing Instances
To add an SSH key to an existing instance, navigate to the instance’s Cloud Control Panel page and press the Change SSH Keys button.
From there, the available SSH keys will be displayed in a dropdown and you may select one or more (even all) SSH keys to apply to the instance.
Press the Confirm button and then reboot in order to process the addition of the keys to the instance.