SSH Keys
Use of SSH Keys allows you to secure SSH access to Virtual Machines(VMs). You can generate a key pair on a client from which you will connect to VMs via SSH. The private key will be stored on the client and you will be able to copy it to other nodes. Key injection is supported for both Linux and Windows Virtual Machines.
Limitations
- You can specify an SSH Key only if you deploy a Virtual Machine from a template or volume.
- If a key has been injected into one or more Virtual Machine, it will remain inside those Virtual Machines even if you delete the key from the panel.
- If more than one key will be added, their names must be unique.
Create an SSH Key
SSH Keys on the "SSH Keys" page, click the “Add New” button. After doing this there are 2 different options “Add an SSH Key” and “Generate New SSH Key”;
Generate a New SSH Key
- On the “Create An SSH Key” page, click the “Generate New SSH Key” button and then click the “Confirm” button to confirm the public and private SSH Key to be created. We have saved the private SSH key file on your computer. Then specify a name for your SSH key to add the public key to your environment, and then click "Create An SSH Key".
Must save the generated key. If you do not save and lose the key, you cannot access that key again.
Add an SSH Key
- On the “Create An SSH Key” page, click “Add an SSH Key” and there are 2 different options “Type an SSH Key” and “Upload an SSH Key”.
a. Type an SSH Key;
- On the “Add an SSH Key” window, click “Type an SSH Key”. Continue with copying the created public key contained in the "Type an SSH Key" and paste the key value into the "Key Value" field.
b. Upload an SSH Key;
- On the “Add an SSH Key” window, click “Upload an SSH Key”. And then click “File Upload” to upload the SSH public key file and select the SSH public key file and upload it.
You can visit this page to get more information about SSH Key generation.
Delete an SSH Key
- On the "SSH Keys" page, select the SSH Key you want to delete, and then click "Delete".
- Click "Delete" in the confirmation window.
If this key has been injected into one or more virtual machines, it will remain inside those virtual machines.