Log inSign up

What to do in the first hour after deploying a server

Right after deploying, log in as root with the password from the Overview tab, install updates, create a sudo user, switch to SSH keys and turn on a firewall that allows only SSH. Then set the hostname and time zone, add swap if RAM is small, enable automatic security updates and backups, and reboot once to prove everything comes back. Each step below takes a few minutes and links to a full guide.

Topic: Server basics · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

Why follow a fixed order?

A new server is reachable from the internet the moment it boots, and automated scanners will try the SSH port within minutes. The order below closes the biggest risks first (old packages, root password logins, open ports) and leaves comfort settings for later. It also avoids the classic mistake of enabling a firewall or disabling passwords before a working key login exists.

This page is a checklist, not a manual. Each item names the key command and points to the guide or tutorial that explains it properly. Keep this page open in one tab and work down the list. If you have not created the server yet, start with deploying a server; adding your SSH key on the Deploy page saves one step below.

Step: log in and look around

Copy the IPv4 address and root password from the Overview tab of the instance, then connect:

ssh root@198.51.100.24
hostnamectl
cat /etc/os-release
ip -br addr
df -h

Confirm that the distribution matches what you chose, that both the IPv4 and IPv6 addresses are present, and that the disk size fits the plan. If you skipped adding a key at deploy time, change the root password right away with passwd. The first SSH session tutorial walks through host key prompts and Windows clients, and the IP addresses guide explains the network details.

Step: install all updates

A fresh image rarely carries every latest package, so there are usually updates waiting:

apt update && apt full-upgrade -y     # Ubuntu, Debian
dnf upgrade -y                          # Rocky, AlmaLinux

If a new kernel arrives, reboot now rather than later, while nothing important is running. More on the tools in apt and dnf package management.

Step: create your own sudo user

Daily work should not happen as root. Create a user, give it administrator rights and copy root keys to it if you added any at deploy time:

adduser deploy && usermod -aG sudo deploy      # Ubuntu, Debian
useradd -m deploy && passwd deploy && usermod -aG wheel deploy   # Rocky, Alma

Open a second terminal and confirm that ssh deploy@198.51.100.24 and sudo whoami work before going on. Details and pitfalls are in create a sudo user.

Step: switch to SSH keys and lock root

Generate a key on your own computer if you do not have one, copy it with ssh-copy-id deploy@198.51.100.24, test the key login, and only then set PasswordAuthentication no and PermitRootLogin no in the SSH server configuration. Note that keys saved in the console SSH keys page are applied at deploy time only, so for a running server you add keys inside the OS.

Follow SSH keys and hardening for the full procedure and disable or restrict root login for the options in between.

Step: turn on a firewall

There is no network firewall in front of the server, so filtering happens in the OS. Allow SSH first, then deny everything else inbound:

sudo ufw allow OpenSSH && sudo ufw enable                 # Ubuntu, Debian
sudo systemctl enable --now firewalld && sudo firewall-cmd --list-all   # Rocky, Alma

Open web ports only when a site is actually running. See UFW, firewalld or the nftables route in firewall rules. Adding fail2ban on top quiets the logs.

Step: hostname, time zone and clock

Give the server a meaningful name and make sure timestamps in logs are right:

sudo hostnamectl set-hostname web1.example.net
sudo timedatectl set-timezone UTC
timedatectl

Many admins keep servers in UTC so logs from different cities line up. Check that System clock synchronized says yes. The full steps are in change the hostname and time zone and time sync. The console label is separate from the hostname, as labels and hostnames explains.

Step: swap, updates and backups

On plans with 1 or 2 GB of RAM, a small swap file prevents the kernel from killing processes during a short memory spike; see add a swap file. Next, let the system install security fixes by itself with automatic security updates.

For backups you have two layers. The optional daily backup add-on costs 20 percent of the monthly price and is restored by support ticket; file level backups to another location with restic cover single files. Both are explained in daily backups. Decide this now, not after the first mistake.

Step: DNS, mail and monitoring

If the server will host a domain, create A and AAAA records pointing to its addresses as shown in DNS records. A reverse DNS (PTR) entry is set by support, so open a ticket with the hostname you want. Planning to send mail directly from the server? Ask support about port 25 by ticket first; sending through an authenticated relay on port 587 works without that.

Finally, keep an eye on resources and transfer. Monitoring usage sets up vnstat for bandwidth, and the Usage graphs tab in the console gives a quick view over time. For alerts when a site goes down, look at Uptime Kuma.

Step: reboot once and confirm

A planned reboot now proves that the firewall, SSH settings and services all come back without you. Run sudo reboot, wait a minute and log in again as deploy with your key:

systemctl --failed
sudo ss -tlnp
sudo ufw status            # or: sudo firewall-cmd --list-all
uptime

No failed units and only the ports you expect means the base is ready. If you locked yourself out, the quickest fix is a reinstall from the Settings tab while the server is still empty, as described in reinstalling an image.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-2small server to practise the routine1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months
A2-4room for a web stack after setup2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months

Questions about First-hour checklist for a new server

How long does the whole checklist take?

About 30 to 60 minutes for a first run, much less once you know the steps. Many people turn it into a small script after the second server.

Is there a way to run these steps automatically at deploy?

Cloud-init and startup scripts are not offered, so you run the steps after the first login. A shell script or an Ansible playbook from your own computer makes it repeatable.

Do I need all steps for a short test server?

Updates, a key login and a firewall are worth it even for a server that lives one day. Swap, backups and monitoring can wait for servers you keep.

What if I lose the root password?

Log in with your SSH key and change it with sudo passwd root. Without any working login, reinstalling shows a new root password on the Overview tab, but it erases the disk.

Should I change the SSH port?

It reduces log noise but does not replace keys. If you do it, open the new port in the firewall first and, on Rocky or Alma, label it with semanage.

Where do I go next?

Pick a use case: a website in Install Nginx, containers with Docker Engine, or browse all topics in the guide library.