When a server will not boot or answer
Start with the console: check the power state, reboot, and if that fails, shut down and power on again. Then test from outside with ping, <code>nc -vz</code> and mtr to tell a dead machine from a blocked port. If the system inside cannot start on its own, your tools are a support ticket, a backup restore, or a rebuild, so prevention matters more than on hosts that offer a rescue system.
Recovery and troubleshooting guide, updated 2026-12-03
What is a rescue system, and what replaces it here?
On many hosting platforms a rescue system is a small live Linux that boots over the network instead of your disk. You log in to it, mount your real disk and repair files such as /etc/fstab or /etc/ssh/sshd_config without the broken system running. A browser console that shows the screen of the virtual machine serves a similar purpose: you watch the boot messages and type at the login prompt.
CheapVPS servers have neither of these. You reach your server over SSH, and the console gives you power control, root password reset, rebuild and support tickets. Support can also restore the backup add-on if you ordered it. That is a short list, so this guide has two halves: how to get a stuck server back with those tools, and how to set things up so a mistake never leaves you locked out in the first place.
What does an unreachable server look like?
Different symptoms point to different layers. Write down which one you see before you press anything, because it saves time later in a ticket.
- No reply to ping and SSH times out. Either the machine is off or stuck early in boot, or a firewall rule drops everything including ICMP.
- Ping answers but SSH times out. The kernel and network are up. A firewall rule drops port 22, or SSH listens on another port.
- Ping answers and SSH says Connection refused. The host is up and replies, but nothing listens on port 22: sshd failed to start, often after a config edit.
- SSH connects, then closes at once or says Permission denied. The network is fine; the problem is keys, users or the shell. See the guides on lost key access and root password reset.
- Websites fail but SSH works. Not a boot problem at all: look at the service, the disk and the logs while you are logged in.
How do you triage from the console, step by step?
Work through these steps in order and wait a little between them, since a virtual machine with a large disk and a full journal can take a minute or two to come up.
- Open the server page and read the power state. If it shows the server as off, power it on and wait two minutes before testing again.
- If it shows running but nothing answers, press reboot. A reboot asks the operating system to restart cleanly, which only works when the system still reacts.
- If a reboot changes nothing after a few minutes, shut the server down and power it on again. This is the equivalent of pulling the plug on a stuck machine. Unsaved data in memory is lost, so use it after the softer reboot fails.
- Check that your term is paid. A server whose invoice ran out is paused, and paying the renewal brings it back.
- Test again from outside with the commands in the next section.
A reboot also has a useful side effect: firewall rules that were only loaded in memory and never saved disappear, so a fresh lockout caused by an untested nft or iptables command often ends with a single reboot.
How do you test the server from the outside?
Use a second machine, ideally on a different network such as a phone hotspot, so your own office firewall does not confuse the picture. Replace the example address with yours.
ping -c 5 203.0.113.10
nc -vz -w 5 203.0.113.10 22
nc -vz -w 5 203.0.113.10 443
mtr -rwc 50 203.0.113.10
ping -6 -c 5 2001:db8:1234:5678::1Read the answers like this. nc printing succeeded or open means the port accepts connections. Connection refused means the host answered and nothing listens. A timeout means packets vanish on the way, which is typical of a firewall drop or a machine that is down. If IPv6 answers but IPv4 does not, or the reverse, the server is running and the issue is in the address configuration or the firewall for one family. The mtr guide explains how to read the hop list.
What usually stops a Linux server from coming up?
Most cases trace back to a change made in the last session before the outage. The common ones:
- A wrong line in /etc/fstab. A mount that cannot be found (a typo in a UUID, a removed network share) makes systemd wait and then drop to emergency mode. SSH never starts. Adding
nofailto non-essential mounts prevents this. - A full disk. With no free space, services fail to write their state and logs, databases refuse to start, and sometimes sshd itself cannot start cleanly.
- A firewall lockout. A saved ruleset that drops port 22, or a default policy of drop without an accept rule for SSH, keeps you out after every reboot.
- A broken sshd config. One wrong keyword in
/etc/ssh/sshd_configor a file insshd_config.dand the daemon refuses to start, giving Connection refused. - A kernel or bootloader update that went wrong, usually after the disk filled up during the upgrade.
- Network config edits in netplan or NetworkManager that left the interface without an address.
Without a rescue system, the first two items are the hardest, because the fix needs a shell. That is exactly why the prevention section below exists.
What can support do for you?
Open a ticket from the console with the server name, its IPv4 address, the symptoms from the list above, what you changed last, and the output of your ping and nc tests. Support can confirm from the host side whether the virtual machine is running and whether traffic reaches it, which separates a network problem from a problem inside your operating system. They can also restore the backup add-on to the day you name.
Support does not log in to your system or edit your files; root access, and the responsibility that comes with it, stays with you. That keeps your data private, and it is one more reason to have a second way in.
When should you restore a backup or rebuild?
If the server stays unreachable after a power cycle and the cause is something inside the disk, a restore is the cleanest way back. With the backup add-on you have seven daily copies. Pick the most recent day before the bad change, open a ticket naming the server and that day, and support restores it. Anything written after that copy is replaced, so if the server still answers on some port, pull fresh data off first as shown in copying data off a broken server.
Rebuild is the last resort. It installs a fresh image of your choice on the same server, keeps the IPv4 address and IPv6 network, and wipes the whole disk. Use it when there is no backup and the data either lives elsewhere or can be recreated. After the rebuild, restore your own off-server copies, for example from restic or rsync targets described in backups and restore.
How do you make sure this never locks you out?
A few habits turn a locked-out server into a two-minute fix:
- Keep a second sudo user with its own key, so one broken account or key is never the only way in.
- Keep two SSH keys on file from two devices, for example a laptop and a desktop or a hardware key.
- Order the backup add-on or run your own off-server backups, and test a restore once.
- Set a timed safety net before touching the firewall, sshd or network config:
shutdown -r +5schedules a reboot in five minutes. If the change works, cancel it withshutdown -c. If you lock yourself out, the reboot drops unsaved rules and you are back in shortly after. - Keep the current session open and test every SSH change from a second terminal before you log out.
- Validate before restarting:
sshd -tchecks the SSH config,findmnt --verifychecks fstab,nft -c -f /etc/nftables.confchecks a ruleset without loading it. - Watch the disk with simple alerts, as shown in monitoring basics.
What does a safe firewall change look like in practice?
Combine the safety net with a check before and after:
shutdown -r +5 "safety reboot"
nft -c -f /etc/nftables.conf
nft -f /etc/nftables.conf
# from a second terminal on your computer:
ssh -o ConnectTimeout=5 root@203.0.113.10 true && echo still-in
shutdown -cThe rules loaded with nft -f live in memory until the nftables service loads the file at boot. If the new rules are wrong, the scheduled reboot fires and the service loads the previous saved file, so keep a copy such as /etc/nftables.conf.good and only overwrite the live file once the test passes. The same pattern works for ufw; see the firewall setup guide.
Questions about this guide
Is there a rescue system or a browser console?
No. Servers are reached over SSH, and the console offers power control, root password reset, rebuild, and tickets. Support can restore the backup add-on. Plan for that with a second user, a second key and a tested backup.
Does a reboot fix a firewall lockout?
Only when the bad rules were never saved. Rules loaded in memory vanish on reboot, while a saved /etc/nftables.conf or ufw config loads again at boot and locks you out again.
Will a rebuild change my IP address?
No. A rebuild keeps the IPv4 address and the IPv6 network but wipes the disk and creates new SSH host keys, so clear the old entry with ssh-keygen -R 203.0.113.10.
How long should I wait after power on?
Give it two or three minutes. A server that runs a file system check or a long list of services at boot can take longer than a fresh image.
Can support restore a backup onto a new server?
Ask in the ticket. The standard restore puts the chosen day back onto the server it came from, replacing what is on the disk now.
What should a ticket about a dead server contain?
The server name and IPv4, the symptoms, the time it started, what you changed last, and the output of ping, nc -vz and mtr from your side.