Skip to content

Ask AI

Powered by Blaze

Answers come from E2E Cloud documentation. AI can make mistakes.

Manage SSH keys on a VM

View as Markdown

Add, replace, or remove the SSH keys that can sign in to a TIR Virtual Machine (VM), for example when a colleague joins the project or a key is lost. The VM keeps running: it picks up a key change within about 15 seconds. Keys can change while the VM is Running or Stopped. SSH also needs a security group that allows port 22; if the VM has none, TIR asks you to attach one as you add the key.

In Manage VMs, select the VM’s name, go to Network & Security, and select the SSH side tab, where the VM’s keys are.

  1. If the SSH switch is off, turn it on.
  2. Select one or more of your saved keys. A new key can be added right here, and it is picked for you once saved; see also Add an SSH key.
  3. Select Update.
  4. In Enable SSH Access, select Continue.

The key is attached, and you can sign in with it once the VM picks it up, within about 15 seconds. See Connect to a VM over SSH.

If the VM still needs a security group that allows port 22, Update first asks for one: choose a group in Select Security Group and select Attach, then carry on with step 4.

To replace a key, for example after you lose its private key, add the new key first, check that you can sign in with it, then remove the old one. Both keys work until you remove the old one, so you can sign in throughout.

Select remove beside the key, then Remove to confirm. Removing the last key also turns off SSH access to the VM, so add another key first if you still want to sign in.

TIR removes the keys it added to the VM. A key you added by hand inside the VM stays until you remove it there too.

For help with any message on this tab, see Troubleshooting TIR Virtual Machines. To limit which addresses can reach port 22, attach a security group of your own.

Was this page helpful?