Add SSH Key to an Existing VM
This page explains how to attach one or more SSH keys to a Virtual Machine (VM) that has already been deployed, without needing to recreate the VM.
Multiple SSH Keys Are Supported
CloudRaya VMs can have more than one SSH key attached at the same time. You can attach multiple keys during VM creation, or add more keys later from the VM Detail page. Each attached key can be used independently to access the VM.
📄 See: Create a Virtual Machine
When Should You Add an SSH Key to an Existing VM?
You may want to add an SSH key to an existing VM when:
- Granting access to a new team member
- Adding a personal key for testing or troubleshooting
- Preparing a replacement key before rotating access
- The VM was originally deployed without an SSH key
How to Add an SSH Key to an Existing VM
Steps
- Go to Dashboard → Virtual Machine
- Click View Detail on the VM you want to update
- In the Virtual Machine Action section, click the SSH (key icon)
- The Add SSH dialog appears
- From Select SSH Key, choose one or more existing SSH keys
- Confirm The VM will restart after the SSH key is added
- Click Add SSH
📄 See: Create SSH Key
⚠️ What Happens When You Add an SSH Key
The VM will restart automatically to apply the new SSH key. Any active connections or running processes may be interrupted during the restart.
- The new key is added in addition to any keys already attached
- Existing access from previously attached keys is not removed
- The change takes effect once the VM finishes restarting
Removing or Modifying Existing Keys
The panel does not support deleting or modifying keys already attached to a VM. To remove or change an existing key, you must edit it manually from inside the VM. Contact CloudRaya support if you need assistance.
Best Practices
- Use a separate SSH key per team member for traceability
- Add or rotate keys during low-traffic windows, since this triggers a VM restart
- Remove a departing team member's access by manually deleting their key from inside the VM
- Keep your SSH Key list in the CloudRaya panel clean by deleting unused keys
📄 See: Manage SSH Key
Next Steps
-
Connect to the VM using the newly added key
📄 Use SSH Key with Virtual Machine -
View, reuse, or delete SSH keys
📄 Manage SSH Key -
Learn more about how SSH keys work in CloudRaya
📄 SSH Key