Get a cloud server
Make an SSH key, order a Cloud Compute instance, sign in to it over SSH and take its first snapshot, from start to finish.
In the dashboard
This tutorial gives you a Linux virtual machine of your own, a Cloud Compute instance, and signs you in to it over SSH. You make an SSH key, order the instance with the key on it, connect from your computer, and take a snapshot to return to if a change goes wrong. Each section ends with something you can check before you go on.
It costs the plan you choose, by the month or by the hour, and the order page shows each price. One public IPv4 address comes with the instance at no charge while it stays attached as its primary address (How instances are billed). If virtual machines are new to you, read Cloud servers first.
Before you begin
Section titled Before you begin- A Coritan account. Create an account if you have none, then sign in.
- Credit for the first invoice, or a card or PayPal to pay it when you order (Add credit to your balance). Hourly billing also needs a minimum total of deposits on your account (How hourly billing works).
- A terminal: on Linux or macOS, or PowerShell on Windows 10 and later.
1. Make an SSH key
Section titled 1. Make an SSH keySkip this section if you already have a key in ~/.ssh.
In your terminal, create a key pair:
Shellssh-keygen -t ed25519 -C "alex@example.com"Press Enter to keep the default file, and choose a passphrase when it asks.
Print the public key:
Shellcat ~/.ssh/id_ed25519.pub
The terminal prints one line that starts with ssh-ed25519. Copy the whole line (Make an SSH key).
2. Order the instance
Section titled 2. Order the instance- In the dashboard, go to Cloud Compute and select Order instance.
- Under Plan, choose how often to pay, then a plan under Size. Each row shows its vCPUs, memory, disk and monthly traffic.
- Under Operating system, choose a card under Distribution, such as Ubuntu. The line under the releases names the user you sign in as.
- Under Location, choose the data centre closest to the people who will use the instance.
- Under Settings, keep the suggested Hostname or type your own, such as
web-1. Paste your public key under SSH keys, and leave the switch on the Public IPv4 address card on. - Check the summary under Your order, then select the button under it. It reads Deploy instance when your credit pays the first invoice, and Place order and pay when you pay on the next page.
- If the order's page reads Order placed, payment due, pay under Pay invoice.
The order's page shows Setting up while Coritan builds the instance, and its title becomes Your order is ready. The instance appears on the Cloud Compute page with its address (Create an instance).
3. Sign in over SSH
Section titled 3. Sign in over SSHOn the Cloud Compute page, select the instance's hostname to open it, then select Copy address in the header.
Select the Access tab. The User account card shows the user to sign in as under Username, such as
ubuntu.In your terminal, connect as that user, with the address you copied:
Shellssh ubuntu@203.0.113.10The first time, SSH asks you to confirm the host's fingerprint. Type
yes.
Your terminal shows the instance's shell prompt, and hostname prints the hostname you chose. Coritan also sets a password for the user, but no page shows it. To sign in with a password instead of your key, reset it on the Access tab first (Connect to an instance over SSH).
4. Take a first snapshot
Section titled 4. Take a first snapshotA snapshot saves the instance's disk as it is now, so you can return to this clean state after a change that goes wrong.
- Open the instance's Snapshots tab and select Take snapshot….
- Under Name, type a name such as
clean-install. Start with a letter, use letters, digits, hyphens and underscores, and keep it to 37 characters. - Select Take snapshot.
The snapshot appears in the table with Disk under Contents. Roll back… in the menu at the end of its row returns the disk to it, and loses everything written since (Take and roll back instance snapshots).
Troubleshooting
Section titled TroubleshootingPermission denied (publickey)- The instance does not hold the key you used, or you signed in as the wrong user. Check Username on the Access tab (Connect to an instance over SSH).
Connection timed out- The instance is stopped or has no public address. Start it with the power buttons in its header (Start, stop and restart an instance).
Each line must be one OpenSSH public key, e.g. "ssh-ed25519 AAAA… you@laptop".- A line under SSH keys is not a public key. Paste the contents of the
.pubfile, one key per line.
Next steps
Section titled Next steps- Put a website online with the instance as the site's origin
- Back up and restore an instance, for a copy that survives a rebuild
- Manage an instance's addresses and names, such as its reverse DNS name