Getting started with Compute

Launch an instance that only you can reach over SSH, log in, and delete everything again, in about ten minutes.

Last updated 18 November 2026View as Markdown

Replace web-01 with a name of your own, 203.0.113.4 with your own public address, and the ids with the ones each step answers.

Prerequisites

  • Permission for ec2:RunInstances, ec2:CreateSecurityGroup, ec2:DescribeInstances, ec2:TerminateInstances and ec2:DeleteSecurityGroup, and for the CLI's separate rule step ec2:AuthorizeSecurityGroupIngress; the managed policy Ec2FullAccess grants them all.
  • In the console, also ec2:DescribeSecurityGroups to open Security groups in Clean up (without it the page says "Access denied") and the group's page (without it the page is not found); Ec2FullAccess grants it too.
  • A key pair. The console can make one while you launch; for the CLI and API, create or import one first (see Manage key pairs).

You pay for every started hour the instance runs, until you terminate it in Clean up.

Step 1: Let only your address in

You do this in step 2: with no security group added, the form offers Allow SSH from address only, which creates the group ssh-from-my-ip (SSH, port 22, from your IPv4 address) when you choose Create instance.

Step 2: Launch the instance

  1. Open Compute, then choose Create instance.
  2. Under Basics, for Name, enter web-01. Keep Region de1.
  3. Under Size, keep the preselected Instance type (the cheapest shared type in stock), or choose another one that is in stock.
  4. Under Image, keep the preselected Boot image (Ubuntu 24.04).
  5. Under Network, in the banner Every port of this machine will be open to the internet., choose Allow SSH from address only.
  6. Under Security, for Login key pair, choose your key pair, or create one from the picker.
  7. Choose Create instance.

The instance page opens with the state Pending, then Running.

Step 3: Log in

The instance's Overview shows the SSH command under Connect once the instance has a public address:

ssh -i ~/.ssh/my-key root@192.0.2.10

The default user on the platform images is root; point -i at the private half of your key pair. To log in from the browser instead, open the instance's Connect tab.

Clean up

  1. On the instance page, choose the Danger zone tab, then Terminate instance.
  2. Enter the instance name and choose Terminate. The state turns Terminated once the machine is deleted.
  3. Open Security groups, open ssh-from-my-ip, choose the Danger zone tab, then Delete security group.
  4. Enter the group's name and choose Delete security group. While the instance is not yet terminated, deleting is refused: the group is still attached.

Next steps

Did this page help you?