Skip to main content

Creating a VM

Creating and uploading an SSH key

If you don't already have an SSH key, you will need to create one on your local machine.

When creating a VM for the first time, you will be prompted to upload an SSH key, which the VM will use to authenticate future SSH attempts. It will be saved into your account with the name "Default" and accessible on subsequent VM creations from the UI. You can manage all SSH keys in the Console's Security page.

info

Crusoe Cloud supports all SSH public key formats that are accepted by OpenSSH. These include:

For more information on the authorized key format please see the OpenSSH docs.

Creating a new VM

Use the compute vms create command to create a VM of your choice. As an example, you can create a VM that uses Nvidia H100 GPUs:

crusoe compute vms create \
--name my-vm \
--type h100-80gb-sxm-ib.8x \
--location us-southcentral1-a \
--image ubuntu22.04:latest \
--keyfile ~/.ssh/id_ed25519.pub

You can find possible values for type and location by running crusoe compute vms types and crusoe locations list respectively.

If you don't specify an image, the VM will default to the latest version of ubuntu 22.04. Run crusoe compute images list for more options.

Access the VM via SSH

If VM creation succeeds, the VM will start and you will be provided with an IP address for you to SSH into:

ssh ubuntu@<ip>  # or root@<ip> (deprecated)

For more details on VMs, see the Compute section.