Colocation Power and Cooling Checks on Ubuntu Server

What this tutorial solves
If your server is already in a colocation rack, the first risk is usually not software. It is power budget, temperature, remote access, and the small mistakes that show up after a handoff. This tutorial shows you how to check colocation power and cooling on an Ubuntu Server machine, confirm the hardware is safe for production, and set up a repeatable verification routine before you hand the system to support or move it between data-center cages.
The workflow is written for Ubuntu Server on a fresh or recently racked machine. If you need a broader placement checklist, pair this with Hostperl's Ubuntu colocation handoff guide. For customers moving heavier workloads onto hardware they own, Hostperl's dedicated server hosting and ZFS mirroring tutorial are useful references for capacity and storage planning.
Before you touch the server
Start with three facts: the usable wattage in the rack or circuit, the cooling arrangement around the chassis, and the exact Ubuntu release running on the server. In colocation, the margin matters. A power supply that is fine on a desk can become a problem when a rack PDU, a shared circuit, or a hot aisle adds load.
- Confirm the rated circuit or PDU capacity from your colocation provider.
- Check whether your server uses one PSU or redundant PSUs.
- Make sure you know which NIC, iDRAC/iLO/IPMI, or Redfish path reaches the machine if the OS becomes unavailable.
- Keep the current root SSH session open until a non-root login has been verified.
For operators comparing rack placement, remote hands, and cross-connect readiness, Hostperl's rack unit planning guide is a good companion.
Connect from your local computer
ssh root@203.0.113.10Run this on your local computer. Replace 203.0.113.10 with the real public IP address assigned to your server by your provider. This is a documentation example address only.
If your colo provider gives you a non-root login first, use the same address with that account name instead, for example ssh deploy@203.0.113.10.
Confirm the Ubuntu release and host identity
On the VPS as root, identify the operating system before you change anything.
cat /etc/os-releaseYou should see Ubuntu Server details such as VERSION_ID="24.04". Then confirm the host name and uptime.
hostnamectluptimeThese commands tell you exactly which machine you are touching. That matters during colo handoffs, because the wrong serial console or BMC session can waste a support window.
Create a non-root admin before making changes
On the VPS as root, create a sudo-capable administrator named deploy. Keep the root session open until the new login works.
adduser deployEnter a strong password when prompted. Then add the account to the sudo group.
usermod -aG sudo deployNow prepare SSH access.
mkdir -p /home/deploy/.ssh
chmod 700 /home/deploy/.ssh
cp /root/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
chown -R deploy:deploy /home/deploy/.ssh
chmod 600 /home/deploy/.ssh/authorized_keysIf you do not already have a trusted key in /root/.ssh/authorized_keys, copy your public key from your local computer with ssh-copy-id deploy@203.0.113.10 after creating the account. The key file must remain owned by deploy and readable only by that user.
Test the new login before locking anything down
Open a second terminal on your local computer and connect as the new user.
ssh deploy@203.0.113.10Then verify sudo access.
sudo -v
whoami
pwdYou should see deploy as the current user, and sudo -v should accept your password. Do not close the original root session until this works.
Check power draw and thermal headroom
Ubuntu cannot read every colo PDU directly, so use the OS for what it can measure and the provider's portal or remote hands for the rest. On the server, inspect CPU temperature, fans, and any thermal warnings.
sudo apt update
sudo apt install -y lm-sensors smartmontoolsRun sensor detection and read the output.
sudo sensors-detect --auto
sensorsLook for fan speeds, package temperature, and anything marked critical. A healthy colo server should not show repeated thermal throttling or missing sensors unless the hardware lacks them.
Check disk health too, because failed drives raise heat and load at the same time.
sudo smartctl -a /dev/sdaReplace /dev/sda with your actual boot or data disk. You want SMART overall-health self-assessment test result: PASSED and no growing reallocated-sector or temperature errors.
Verify the network path and remote management
Colocation only works if you can reach the box after a reboot or power event. Confirm link, routes, and listening services.
ip addr show
ip route show
ss -tulpnThese commands show interface state, the default route, and the services bound to ports. If SSH is the only service you expect, it should be listening on port 22 or your chosen management port.
If the provider exposed a BMC or remote console, validate it before you need it. Many colo outages take longer to resolve because nobody tested the side-band path while the machine still booted normally.
Secure SSH and open the firewall safely
On Ubuntu Server as the non-root sudo user, harden SSH before you change access rules. Ubuntu uses UFW and AppArmor, so the procedure is different from RHEL-family systems.
sudo apt install -y ufw fail2ban
sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw status verboseThis opens SSH first, then enables the firewall. The order prevents lockout. The status output should show OpenSSH allowed and the firewall active.
Now tighten SSH. Edit the daemon configuration carefully.
sudo nano /etc/ssh/sshd_configUse these settings if they are not already present.
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
KbdInteractiveAuthentication no
X11Forwarding no
AllowUsers deploySave and exit nano, then validate the file and reload SSH only after the syntax check passes.
sudo sshd -t
sudo systemctl reload sshTest from a fresh local terminal before ending the root session.
ssh deploy@203.0.113.10
sudo -vIf you can log in and run sudo, the change is safe. Only then should you consider ending root SSH access on the provider side.
Set up Fail2Ban for colo-facing services
Colocation systems often attract repeated SSH scans, especially after DNS changes or migrations. Fail2Ban lowers noise without touching the application.
sudo nano /etc/fail2ban/jail.localInsert a minimal SSH jail.
[sshd]
enabled = true
port = ssh
logpath = %(sshd_log)s
maxretry = 4
bantime = 1hSave the file, test the service, then start it.
sudo systemctl enable --now fail2ban
sudo fail2ban-client status sshdThe status output should show the jail active. If it does not, check /var/log/fail2ban.log and journalctl -u fail2ban.
Validate cooling behavior under load
Power and thermal checks are only useful if you see how the server behaves under real work. Run a short CPU and disk activity test during a low-risk window, then watch temperatures.
sudo apt install -y stress-ng
top -b -n 1 | head -20
sudo stress-ng --cpu 4 --io 2 --vm 1 --vm-bytes 512M --timeout 5mWhile the test runs, keep another terminal open with:
watch -n 5 sensorsYou want temperatures to stabilize below the hardware's warning threshold and fan speed to increase without repeated critical alarms. If the chassis climbs too quickly, stop the test and ask for a recheck of airflow, blanking panels, or neighboring equipment.
Review logs and confirm boot persistence
Before you call the server ready, confirm that the services you changed start cleanly after reboot.
systemctl status ssh --no-pager
systemctl status fail2ban --no-pager
journalctl -u ssh -n 50 --no-pager
journalctl -u fail2ban -n 50 --no-pagerThen perform a controlled reboot if the maintenance window allows it.
sudo rebootReconnect after the reboot and run the same verification commands again. SSH should come back automatically, UFW should remain active, and Fail2Ban should start without manual help.
Rollback if you lose access or find a cooling issue
If SSH stops working, use the original root session, remote console, or provider emergency access. Restore the previous SSH settings first, then reload the daemon.
sudo cp /etc/ssh/sshd_config.bak /etc/ssh/sshd_config
sudo sshd -t
sudo systemctl reload sshIf you did not save a backup, comment out the last SSH hardening change and use the console path instead. For cooling problems, stop workload tests immediately, power down only if necessary, and open a colo ticket with the sensor output and timestamps. That gives remote hands a clean starting point.
Final verification checklist
Run these checks from both sides. On the server, confirm the process and firewall state. On your local computer, confirm you can still reach the machine after a normal reboot.
systemctl is-active ssh
systemctl is-active fail2ban
sudo ufw status verbose
hostname -f
sensorsssh deploy@203.0.113.10
sudo -vYou should be able to log in, confirm sudo, and see healthy thermal readings. If those three things hold, the machine is ready for production traffic or further colo migration steps.
Troubleshooting the most likely failures
SSH login fails after hardening: Run sudo sshd -t on the console. If it reports a syntax error, fix /etc/ssh/sshd_config and reload SSH. If syntax is fine but login still fails, check journalctl -u ssh -n 100 --no-pager for Permission denied or AllowUsers mistakes.
UFW blocks access: Check sudo ufw status numbered. If OpenSSH is missing, restore it with sudo ufw allow OpenSSH before making any other changes. Always add the new rule before removing the old one.
Temperatures rise too fast: Re-run sensors and smartctl -a /dev/sda. If the fan curve looks wrong or a drive is running hot, stop load testing and ask remote hands to inspect airflow, dust, and power delivery.
Hostperl can help you plan colo transitions, dedicated capacity, and the support steps that keep servers reachable after a move. If you are comparing a colocated server with a managed hardware option, start with dedicated server hosting and our managed cutover checklist to reduce handoff risk.
FAQ
How do I know if a colo server has enough cooling headroom?
Watch sensors during a short controlled load test. If the CPU stays below critical thresholds and fans ramp predictably, the machine usually has acceptable headroom. If the temperature climbs quickly or throttling appears, treat it as a colo support issue.
Should I disable password logins right away?
No. First verify that a second terminal can log in as deploy with SSH keys and sudo access. Only after that should you turn off password authentication or root login.
Can I use this process for a server in a remote rack?
Yes. The same sequence works for rented colo space, cross-connect handoffs, and remote-hands-managed hardware. You may need to adjust the remote console or PDU steps to match your provider.
What should I send support if cooling looks wrong?
Include the time, the exact sensor output, the current workload, and whether the issue appeared after a rack move or power event. That helps remote hands inspect the right rack position and power path.
