Creating a Cloud Server

Learn how to provision, configure, and deploy your first virtual private server (VPS) on CloudNexus. This guide covers both the web console and CLI methods, along with essential post-deployment configuration.

💡
Tip New accounts receive $200 in free credits. No credit card required to start deploying. Claim credits →

Prerequisites

Before creating a server, ensure you have the following:

  • An active CloudNexus account with verified billing (or free credits)
  • SSH key pair generated locally (ssh-keygen -t ed25519)
  • CloudNexus CLI installed and authenticated (cnx auth login)

Method 1: Web Console

The CloudNexus dashboard provides a visual, step-by-step workflow for server creation.

1

Access the Compute Dashboard

Navigate to Compute → Servers in the left sidebar and click the + Create Server button. You'll be redirected to the provisioning wizard.

2

Configure Base Settings

Select your preferred region, naming convention, and operating system template. CloudNexus supports Ubuntu 22.04/24.04, Debian 12, CentOS Stream, Alpine, and custom cloud-init images.

Region US-East-1 (Virginia)
Hostname prod-web-01.cnx.internal
OS Image Ubuntu 24.04 LTS x64
3

Select Hardware Plan

Choose a compute tier based on your workload. All plans include NVMe storage, 10 Gbps network, and DDoS protection by default.

PlanvCPURAMNVMeMonthly
Starter24 GB80 GB$19.00
Professional832 GB320 GB$79.00
Enterprise32128 GB1 TB$249.00
4

Configure Network & Security

Assign the server to a VPC/subnet, attach firewall rules, and upload your SSH public key. CloudNexus enforces key-based authentication only for enhanced security.

⚠️
Password authentication is disabled by default. Ensure your SSH key is added to avoid lockout.
5

Deploy & Verify

Click Deploy Server. The instance will provision in ~15 seconds. Once the status changes to Running, note the primary IPv4 address for connection.

Method 2: CloudNexus CLI

For automation and infrastructure-as-code workflows, use the official CLI. The command below provisions a server matching the console configuration:

terminal
# Provision a production-ready VPS
cnx server create \
  --name prod-web-01 \
  --plan professional \
  --region us-east-1 \
  --image ubuntu-24.04-x64 \
  --ssh-key ~/.ssh/id_ed25519.pub \
  --vpc vpc-a1b2c3d4 \
  --tags env=prod,team=backend
Success Server prod-web-01 (ID: srv-8f3x92) is ready. Connect via:
ssh root@203.0.113.42

Post-Deployment Configuration

Once connected, we recommend running these initial security hardening steps:

  1. Update system packages: apt update && apt upgrade -y
  2. Create a non-root sudo user and disable root SSH login
  3. Configure UFW firewall to allow only SSH (22), HTTP (80), and HTTPS (443)
  4. Enable automatic security updates via unattended-upgrades
  5. Install CloudNexus agent for monitoring: curl -sSL https://agent.cnx.io | bash

Troubleshooting

SSH Connection Timed Out

If you can't connect within 2 minutes after deployment:

  • Verify your firewall allows port 22 inbound
  • Check if the server is attached to a public subnet with NAT gateway
  • Confirm your SSH key matches the one uploaded during creation

Server Fails to Boot

Check the Console Output tab in the dashboard for kernel panic messages. Common causes include corrupted cloud-init configs or incompatible kernel modules.