First Server Access

Just activated your server? Here are the first operations to secure and properly configure system.

02

1. Update System

First thing to do is update all packages to latest available version.

Debian / Ubuntu:

bash
apt update && apt upgrade -y

CentOS / AlmaLinux / Rocky Linux:

bash
dnf update -y
03

2. Change Root Password

Don't use email password long-term. Change it immediately:

bash
passwd

Full guide: Change Root Password

04

3. Set Correct Timezone

bash
timedatectl set-timezone Europe/Rome

Verify with:

bash
timedatectl
05

4. Set Hostname

bash
hostnamectl set-hostname server-name
06

5. Create Non-Root User (recommended)

Working always as root is risky. Create dedicated user:

bash
adduser deploy
usermod -aG sudo deploy   # on Debian/Ubuntu

Then add user to wheel group on CentOS/AlmaLinux:

bash
usermod -aG wheel deploy
07

6. Configure SSH Keys

Access with SSH keys is much more secure than passwords. Guide: SSH Keys

08

7. Configure Basic Firewall

Open only SSH port and those you need:

bash
# UFW (Debian/Ubuntu)
ufw allow 22/tcp
ufw enable
ufw status

Full guide: Firewall

09

Quick Checklist

OperationCommand
Update systemapt update && apt upgrade -y
Change root passwordpasswd
Set timezonetimedatectl set-timezone Europe/Rome
Set hostnamehostnamectl set-hostname name
Enable firewallufw enable

DeluxHost, fondata nel 2023, offre soluzioni di hosting di alta qualità per diverse esigenze digitali. Forniamo hosting condiviso, VPS e server dedicati con sicurezza avanzata e datacenter globali.

© DeluxHost, Tutti i diritti riservati. | Partita IVA: IT17734661006
Tutti i sistemi operativi