# Manage SSH identities > Add, import, rotate, and remove the public SSH keys that give you access to your Greenhouse machines. Source: https://docs.orchard.hackclub.com/account/ssh-identities/ An SSH identity is a named public key on your account. Add one to connect to a [Greenhouse machine](/greenhouse/) from your own terminal or a local editor, such as VS Code or Zed over SSH. Orchard stores only the public key and never receives your private key. ## Prerequisites - The Greenhouse graft [installed on your instance](/operate/greenhouse/#install-the-graft). ## Generate a key with the CLI Use this option if you do not need a specific key. The following command generates a key for Orchard and registers it as an identity: ```bash orchard sandbox ssh-config --install ``` The command also adds an `orchard-*` entry to `~/.ssh/config`, so `ssh orchard-` works. To connect an editor this way, refer to [Connect an editor over SSH](/greenhouse/editors/). ## Add an identity **Dashboard** 1. Go to **Account settings** > **Greenhouse**. 2. In **SSH identities**, select **Add identity**. 3. In **Name**, enter a name, such as `laptop`. 4. In **Public key**, paste your public key. 5. Select **Add identity**. **CLI** ```bash orchard ssh-identity add laptop --key ~/.ssh/id_ed25519.pub ``` ## Import keys from GitHub Orchard reads `https://github.com/.keys` for your linked GitHub account and creates one identity for each key. **Dashboard** 1. Go to **Account settings** > **Greenhouse**. 2. In **SSH identities**, select **Import from GitHub**. **CLI** ```bash orchard ssh-identity import-github ``` ## Remove an identity Orchard refuses to remove an identity that is attached to a machine. The error names the machine: ```txt Identity is attached to sandbox "my-machine"; detach it first ``` 1. Attach another identity to the machine: ```bash orchard sandbox update --identity ``` 2. Remove the identity: ```bash orchard ssh-identity remove ``` ## Rotate a key 1. Add the new key as a new identity. 2. Attach the new identity to your machines. 3. Confirm that you can connect with the new key. 4. Remove the old identity. ## Related resources - [Machines](/greenhouse/machines/) - Create, start, and stop Greenhouse machines and attach identities to them. - [`orchard ssh-identity` reference](/reference/cli/#ssh-identity) - Every flag of the `orchard ssh-identity` commands.