Connect with SSH
Access to a virtual machine is over SSH, authenticated with a key pair that you control. Chapek holds only the public key.
Prerequisites
Section titled “Prerequisites”An SSH key pair is required on your computer. To generate one:
ssh-keygen -t ed25519 -C "you@example.com"This creates a private key, which remains on your computer, and a public
key with the extension .pub.
1. Upload your public key
Section titled “1. Upload your public key”In the portal, open Account → Settings → SSH keys and add the
contents of your .pub file. Assign the key a name so that it can be
identified later.
2. Create a virtual machine and select the key
Section titled “2. Create a virtual machine and select the key”When you create a virtual machine, select the key you uploaded. The key is installed in the virtual machine during provisioning, and you authenticate with the corresponding private key.
3. Wait for the SSH command
Section titled “3. Wait for the SSH command”Open the virtual machine’s detail page. While the virtual machine is being provisioned, the page shows its progress and no command. The command appears once two checks have passed:
- the SSH service inside the virtual machine is running and responding, and
- the public address and port respond to SSH externally, over the same path your computer will use.
The command shown has been verified. The portal never shows an unverified or placeholder address.
4. Connect
Section titled “4. Connect”Copy the command from the page. It names the address, the port and the username, for example:
ssh -p 22000 ubuntu@203.0.113.10Use the command exactly as shown, including the port.
5. Verify the connection
Section titled “5. Verify the connection”At the shell, run:
whoamihostnamewhoami prints the username shown in the portal and hostname identifies
your virtual machine. This confirms that your key is installed and that
the full path from your computer to the virtual machine is working.
Troubleshooting
Section titled “Troubleshooting”“SSH is not reachable yet. Please try again shortly.” The virtual machine or its public address is not yet responding to SSH. Wait briefly and reload the page. The command remains hidden until the checks pass.
Permission denied (publickey)
The private key on your computer does not match the public key you selected
when creating the virtual machine. Specify the corresponding private key,
for example ssh -i ~/.ssh/id_ed25519 -p 22000 ubuntu@203.0.113.10, or
check which key you uploaded under Account → Settings → SSH keys.
Connection refused or timed out on a running virtual machine If the firewall is enabled for the virtual machine, confirm that a rule allows your source address on the SSH port. See Virtual machines.
Connection refused after deleting a virtual machine When a virtual machine is deleted, its public SSH port is closed as well. The previous command no longer connects.
