Cloud Platform
Create your first instance
Last updated 2026-11-05
Create your first instance
This guide creates a small Linux machine in the default project and logs in to it.
1. Add an SSH key
Keys belong to the project, so you add yours once and pick it for every instance.
ssh-keygen -t ed25519 -C "me@example.com"
cat ~/.ssh/id_ed25519.pubIn the console open Compute → SSH keys → Add key, give it a name (lowercase letters, numbers and hyphens, starting with a letter) and paste the public key.
2. Create a network
Instances need a VPC and a subnet. Create a VPC, then a subnet in it. Choose dual stack if you want IPv6 as well.
3. Create the instance
Open Compute → Instances → Create instance and choose:
| Setting | Notes |
|---|---|
| Name | A name you choose. |
| Region and zone | Where it runs. |
| Series and size | The series sets the CPU type and the maximum size; any vCPU and memory within it is valid. |
| Boot disk | Start from a public image, for example a Linux distribution. |
| Network interface | The subnet you made. |
| Initialization | Hostname and the SSH key from step 1. See Initialization. |
Create it. The console returns at once with an operation; the instance goes through provisioning and starting to running.
4. Reach it
The instance has a private address from its subnet. To log in from the internet reserve a public IP and attach it, then allow SSH in the firewall:
| Direction | Action | Protocol | Port | Remote |
|---|---|---|---|---|
| ingress | allow | tcp | 22 | your address, for example 203.0.113.7/32 |
ssh <user>@<your public IP>The user name depends on the image; the image description says which one it uses.
If you cannot reach it, open the browser console to see the machine's screen or serial port.
Clean up
Delete the instance, then the disks that are not set to delete with it, and release the public IP. Reserved public addresses are billed by the hour whether or not they are in use.