Engineering notes
New VPS checklist: what a fresh server sees, and what we ran
A new Debian VPS logged its first SSH attempt for a made-up username 27 minutes after boot. The checks we ran next, with real output, from auth to swap, HTTPS and disk.
We ordered a Vozora Nano (1 vCPU, 1 GB RAM, 20 GB disk, the Nano of the time; it is now 2 GB RAM and 30 GB) in the UK on 21 September 2026, booted the Debian image and ran the checks we would run on any new server. Every command and every line of output below is from that server, copied from the session. Where the output contained the server's address we have replaced it with $IP, and some long output is trimmed where marked.
Since then the plans have changed: a Nano is now 1 vCPU, 2 GB RAM and 30 GB of disk. The output below is from the server as it was then; see the pricing page for current plans.
None of this is specific to Vozora. It is a first-steps list for any fresh Linux VPS.
Who else found the server
Check when the machine first booted, when the first stranger tried to log in, and how many have tried since:
$ sudo journalctl -o short-iso --no-pager | head -1 | cut -c1-19
2026-09-21T16:48:54
$ sudo journalctl -u ssh -o short-iso --no-pager | grep -m1 'Invalid user' | cut -c1-19
2026-09-21T17:15:57
$ sudo journalctl -u ssh --no-pager | grep -c 'Invalid user'
70
$ sudo journalctl -u ssh --no-pager | grep -oP 'Invalid user \K\S+' | sort | uniq -c | sort -rn | head -3
8 ubuntu
6 test
6 deploy
The oldest journal line is the first boot. The first login attempt for a username that does not exist on the box came 27 minutes and 3 seconds later, and there had been 70 of them by the time we checked. Scanners sweep whole address ranges, so a new public address gets tried whether or not any name points at it.
The usernames are guesses at common defaults: ubuntu, test, deploy. That is why a default account with a password is the thing to avoid. This count only covers names that don't exist on the server; attempts on real accounts such as root are logged differently, so grep -c 'Invalid user' is a floor, not a total.
Confirm passwords are off
Those 70 attempts only matter if a password could ever work. Test it from your own machine by refusing to offer a key:
$ ssh -o PubkeyAuthentication=no debian@$IP
debian@$IP: Permission denied (publickey).
(publickey) is the list of methods the server will accept. Only one is offered, so a guessed password has nowhere to go. If you see password or keyboard-interactive in that list on any server, fix PasswordAuthentication in the SSH daemon config before doing anything else. The SSH guide covers keys and the image login user.
With key-only login, the attempts above are log noise rather than a threat. Tools such as fail2ban reduce the noise; they do not replace turning passwords off.
See what is listening
A fresh server should expose very little. List every listening TCP socket and the process that owns it:
$ sudo ss -tlnp
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 4096 127.0.0.54:53 0.0.0.0:* users:(("systemd-resolve",pid=777,fd=23))
LISTEN 0 4096 0.0.0.0:5355 0.0.0.0:* users:(("systemd-resolve",pid=777,fd=12))
LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=777,fd=21))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=651,fd=6))
LISTEN 0 4096 [::]:5355 [::]:* users:(("systemd-resolve",pid=777,fd=14))
LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=651,fd=7))
$ systemctl list-units --type=service --state=running --no-legend | wc -l
14
Port 22 is SSH. Port 53 on the 127.0.0.x addresses is the local DNS stub, reachable only from the machine itself. Port 5355 is LLMNR, a local-network name lookup protocol from systemd-resolved, and it is bound to all addresses. If you don't use it, set LLMNR=no in /etc/systemd/resolved.conf and restart systemd-resolved, or make sure your firewall drops it.
Run ss -tlnp again after you install anything. Anything bound to 0.0.0.0 or [::] is listening on every address, not just loopback.
Check security updates are automatic
$ systemctl is-active unattended-upgrades
active
$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
On this Debian image, package lists refresh daily and unattended-upgrades applies updates without you. Two things it does not do by default: it does not reboot, so a new kernel is not running until you restart, and it only takes updates from Debian's own archives, not from third-party apt repositories or Docker images.
Know your memory numbers
$ grep -E "^(MemTotal|MemFree|MemAvailable|Cached):" /proc/meminfo
MemTotal: 991160 kB
MemFree: 401028 kB
MemAvailable: 714348 kB
Cached: 418380 kB
MemFree is memory doing nothing at all. MemAvailable is the kernel's estimate of what a new program could use without swapping, which includes page cache it can drop. Here that is 714348 kB, not the 401028 kB MemFree suggests. When a monitoring tool says a server is "out of memory" because free memory is low, check MemAvailable before you order a larger server. For sizing a whole self-hosted stack from these numbers, see how much RAM a self-hosting VPS needs.
Add swap on a small server
$ /sbin/swapon --show; echo '(no swap)'
(no swap)
$ sudo fallocate -l 1G /swapfile && sudo chmod 600 /swapfile
$ sudo mkswap /swapfile >/dev/null && sudo swapon /swapfile
$ echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
/swapfile none swap sw 0 0
$ /sbin/swapon --show
NAME TYPE SIZE USED PRIO
/swapfile file 1024M 0B -2
The first swapon --show printed nothing, so the image had no swap. On a 1 GB server, a short memory spike without swap means the kernel's OOM killer picks a process to end. A 1 GB swap file turns that into a slowdown instead. The /etc/fstab line makes it survive a reboot. Swap is not extra RAM: if USED keeps climbing, the workload needs a bigger server.
Get HTTPS working
Caddy fetches and renews a certificate by itself. Without a domain, a wildcard DNS service such as sslip.io gives you a hostname that resolves to the server's address. We have redacted the address in the hostname below.
$ printf '<ip-with-dashes>.sslip.io {\n respond "Hello from this VPS"\n}\n' | sudo tee /etc/caddy/Caddyfile
<ip-with-dashes>.sslip.io {
respond "Hello from this VPS"
}
$ sudo systemctl restart caddy
$ curl -s https://<ip-with-dashes>.sslip.io
Hello from this VPS
$ echo | openssl s_client -connect <ip-with-dashes>.sslip.io:443 -servername <ip-with-dashes>.sslip.io 2>/dev/null | openssl x509 -noout -issuer
issuer=C=US, O=Let's Encrypt, CN=YE1
In our capture, the first HTTPS response came 6 seconds after the restart, with a Let's Encrypt certificate. The openssl line is worth keeping: it proves which certificate is actually being served, not what you think you configured. Publicly trusted certificates are recorded in Certificate Transparency logs, so expect the hostname itself to attract scanners too.
Keep admin tools off the internet
Not every service needs a public port. We ran Uptime Kuma in Docker, published only on loopback:
$ curl -fsSL https://get.docker.com | sudo sh >/dev/null 2>&1; sudo docker --version
Docker version 29.8.1, build 4a63305
$ sudo docker run -d --restart=always -p 127.0.0.1:3001:3001 -v kuma:/app/data --name kuma louislam/uptime-kuma:1 >/dev/null; sudo docker ps --format '{{.Names}} {{.Status}}'
Unable to find image 'louislam/uptime-kuma:1' locally
1: Pulling from louislam/uptime-kuma
(layer download progress trimmed)
Status: Downloaded newer image for louislam/uptime-kuma:1
kuma Up Less than a second (health: starting)
The 127.0.0.1: prefix on -p matters. Docker publishes ports by writing its own firewall rules, so a port published as plain -p 3001:3001 can be reachable even when a host firewall such as ufw looks closed. Binding to loopback avoids the question.
To use it, tunnel over SSH from your own machine:
$ ssh -N -L 3001:127.0.0.1:3001 debian@$IP &
$ curl -sI http://localhost:3001 | head -1
HTTP/1.1 302 Found
$ curl -s -m 5 -o /dev/null -w "%{http_code}\n" http://$IP:3001
000
Through the tunnel, Kuma answers. Straight at the public address, curl gets no HTTP response inside 5 seconds (000 is what curl prints when there was none). The dashboard is only reachable by someone who can already SSH in.
Find where the disk went
$ sudo du -xh / --max-depth=1 2>/dev/null | sort -h | tail -5
4.4M /etc
72M /boot
1.1G /usr
1.2G /var
3.3G /
-x keeps du on one filesystem, so it skips /proc and any mounted volumes. Sorting with sort -h puts the biggest directory last. Repeat one level down in whichever directory is large; on most servers it is /var, where logs, package caches and Docker live.
Deleted files that still use space
A classic: you delete a huge log, and df doesn't move.
$ df -h / | tail -1
/dev/sda1 20G 6.0G 13G 33% /
$ rm app.log
$ df -h / | tail -1
/dev/sda1 20G 6.0G 13G 33% /
$ sudo find /proc/[0-9]*/fd -lname '*(deleted)' -printf '%p -> %l\n'
/proc/1/fd/54 -> /memfd:data-fd (deleted)
/proc/7776/fd/0 -> /home/debian/app.log (deleted)
$ kill 7776
$ df -h / | tail -1
/dev/sda1 20G 994M 18G 6% /
rm removes the name, but the space is only freed when the last process holding the file open lets go. The find lists open file descriptors whose target has been deleted. Process 7776 still had app.log open; once it was stopped, used space went from 6.0G to 994M. The memfd entry belongs to PID 1 and is an in-memory file, not disk space, so leave it alone. In practice, restart the service that writes the log, or truncate the file with : > app.log instead of deleting it.
Check a download completes
$ curl -s -o /dev/null -w '%{size_download} bytes downloaded\n' http://ipv4.download.thinkbroadband.com/1GB.zip
1073725334 bytes downloaded
The full 1 GB test file arrived. This command records bytes, not time, so it says nothing about speed. To measure throughput, add %{speed_download} (bytes per second) or %{time_total} to the -w format and run it more than once, at different times of day.
Reboot once on purpose
Better to find out now that something doesn't come back than during an outage. After a reboot:
$ uptime -s
2026-09-21 16:59:12
$ sudo docker inspect -f '{{.HostConfig.RestartPolicy.Name}}' kuma
always
$ systemctl is-enabled caddy
enabled
$ sudo docker ps --format '{{.Names}} {{.Status}}'
kuma Up 49 minutes (healthy)
$ curl -s https://<ip-with-dashes>.sslip.io
Hello from this VPS
uptime -s shows when the current boot started. Caddy is enabled, so systemd starts it at boot; the container has --restart=always, so Docker starts it again. HTTPS answers with the same response. Anything you start by hand in a shell, with no unit file or restart policy, will not be there after a reboot.
The short version
- Check who is already knocking:
journalctl -u ssh | grep 'Invalid user'. - Prove passwords are refused:
ssh -o PubkeyAuthentication=no. - List what is listening:
ss -tlnp. - Confirm unattended upgrades are active, and remember they don't reboot.
- Read
MemAvailable, notMemFree. - Add a swap file on a small server.
- Put HTTPS in front of anything public, and check the issuer.
- Bind admin tools to
127.0.0.1and reach them over an SSH tunnel. - Use
du -xfor disk, and look for deleted-but-open files whendfdoesn't add up. - Reboot once and check everything came back.
For the next steps after this checklist, from Docker and a reverse proxy to backups and monitoring, see our self-hosting on a VPS guide. For related troubleshooting, see CPU steal time explained and the firewall guide.
The server in this post was a Nano from Vozora's UK VPS plans.