--- title: "SSH Keys" description: "Attach or remove SSH keys on your VM, and understand why the change only lands on the next reinstall." category: "Deployment" language: en source: https://cubepath.com/docs/products/deployment/vps-ssh-keys updated: 2026-11-17 --- # SSH Keys Open the machine → **SSH Keys** tab. This lists the public keys authorized to log in as `root` on this machine, each with its **name** and **fingerprint** so you can tell keys apart at a glance. ## Add a key Click **Add Key** and pick one or more keys from your account-wide [SSH key library](/docs/products/settings/ssh-keys). Keys already attached to the machine aren't offered again, so you can't add a duplicate by accident. If the key you want isn't in the list, add it to the library first. That page also has a **How to Generate** helper with the commands for macOS, Linux and Windows. ## Remove a key Click the trash icon on a key and confirm. This removes it from this machine only; the key stays in your account library and on any other server it's attached to. ## When the change takes effect > Important: Keys added or removed here are only written to the machine on the next **[reinstall](/docs/products/deployment/vps-reinstall)**. A running machine is not touched: its `~/.ssh/authorized_keys` stays exactly as it is. This surprises people, so plan around it: - **Onboarding a teammate** on a live machine? Add their key here so it survives the next reinstall, and append it to `~/.ssh/authorized_keys` over SSH so they can log in now. - **Offboarding someone?** Removing the key here is not enough. Delete it from `~/.ssh/authorized_keys` on the running machine too, or their access continues until the machine is reinstalled. > Tip: If you've lost every key and the root password, set a new root password with **Change Password** in the machine's action menu, then log in through the [browser console](/docs/products/deployment/deploy-a-virtual-machine#access-your-machine) and fix `authorized_keys` directly.