Wrong time breaks TLS, logs and cron. chrony is the recommended NTP client on modern Ubuntu to keep the VPS clock aligned.
Steps
Install chrony and start the service:
sudo apt updatesudo apt install -y chronysudo systemctl enable --now chronyReview NTP sources (defaults are usually fine):
grep -E "^(pool|server)" /etc/chrony/chrony.confchronyc sources -vCheck synchronization:
chronyc trackingtimedatectl statusOptional: set the timezone:
sudo timedatectl set-timezone Europe/Madriddate
Tips
- If you migrated from
systemd-timesyncd, chrony may take over on install — checktimedatectl. - After a weird snapshot,
sudo chronyc makestepforces an immediate step.
ext step
On-time services on a stable VPS: Deploy your Cloud VPS.