Skip to main content

How to create your first VPS

Provision a virtual server, log in over SSH, and understand what you were given.

A VPS is an entire computer you rent, with root access. This article provisions one and gets you a shell prompt.

What you get

Every HostingSwift VPS is a KVM virtual machine: a genuine hardware-virtualised server, not a shared container. That means its own kernel, its own IP addresses, and guaranteed vCPU and RAM rather than a fair-share with neighbours. You receive:

  • Root access over SSH (and a web console as a fallback).

  • One public IPv4 address and IPv6 connectivity.

  • NVMe storage.

  • Membership of our private WireGuard mesh, so your VPS can talk to your other services over a private LAN.

Provision it

  1. Open /panel/vps and choose New VPS, or order from /pricing.

  2. Pick an operating system. Debian or Ubuntu are the safest defaults; Alpine is superb if you know you want it; AlmaLinux and Rocky are the RHEL-family options.

  3. Pick a plan. Start smaller than you think you need — you can resize upward later without reinstalling.

  4. Add your SSH public key. Do this now; it is far less painful than adding it after the fact. If you have never made a key, see SSH keys and access.

  5. Confirm. Provisioning usually completes in under a minute.

Log in

Once the status is running, connect from your own machine:

bash
ssh [email protected]

Replace the address with the one shown in the panel. On the first connection you will be asked to accept the host key fingerprint — check it against the value shown in the panel before typing yes.

If you chose a password instead of a key, the panel shows it once. Change it immediately:

bash
passwd

The first five minutes

Before you install anything:

bash
# Update the package index and installed packages
apt update && apt upgrade -y      # Debian/Ubuntu
# dnf update -y                   # AlmaLinux/Rocky

# Confirm what you actually bought
nproc          # CPU count
free -h        # memory
df -h /        # disk
ip -br addr    # network interfaces and addresses

Setting the hostname and timezone now avoids confusing logs later:

bash
hostnamectl set-hostname web1.example.com
timedatectl set-timezone Europe/London

Do not skip hardening

A freshly provisioned VPS with SSH open to the internet will be probed within minutes. Before you put anything on it, follow Harden your VPS: disable password authentication, install a firewall, enable automatic updates and add fail2ban.

When you lock yourself out

It happens. Use the rescue console in /panel/vps to get an out-of-band shell that works even if the network is misconfigured. If the filesystem will not boot, boot into rescue mode and repair from there.

Related reading