Apply for Free VPS

Your first hour on a new server

Updated 27 Nov 2026 ubuntu security setup

A short checklist to run after your first sign-in.

Commands below are for Ubuntu and Debian.

1. Sign in

Copy the SSH command from the server page. See Connect with SSH.

2. Update

sudo apt update && sudo apt full-upgrade -y
sudo reboot

3. Set the time zone

Servers work well in UTC. To use Indian time instead:

sudo timedatectl set-timezone Asia/Kolkata
timedatectl

4. Look at what you have

nproc
free -h
df -h /

5. Create your own user (optional)

sudo adduser deploy
sudo usermod -aG sudo deploy
sudo install -d -m 700 -o deploy -g deploy /home/deploy/.ssh
sudo install -m 600 -o deploy -g deploy ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys

Test the new login in a second terminal before changing anything else.

6. Protect it

Follow Secure a new Linux VPS.

7. Plan backups

Decide what must survive a failure and where the copy will live. See Back up a Linux VPS.

Was this helpful?

Report outdated or incorrect information