Bring Your Own SSH Keys
Intro
By default, Shadeform generates an SSH Key per account for provisioning instances. Instances that are created can be accessed using the Shadeform Managed SSH Key. If you want to change the default key used by Shadeform and bring your own SSH key, you add additional SSH Keys on the SSH Keys settings page.
Adding a New SSH Key
To add a new SSH key, click on the “Add Key” button on the SSH Keys settings page.
Provide a name to the SSH Key and the public key. The public key will be added to the instances that you spin up so that you can use the corresponding private key to access the instances.
You can also specify a specific SSH key on the launch instance page even if the key is not your default key.
Managing SSH Keys Using the API
You can manage your SSH keys using the SSH Keys API. See the documentation here for more details.
Add a new SSH Key with the API:
{
"id":"26bedfa2-1e98-4ff5-9342-a5b0987a2f0f"
}
Using the ID returned in the response, you can now create an instance that is accessible using the private key that corresponds with the public key that was just added.
Add the ssh_key_id
field in the Create Instance API call.