Initial VPS Server Setup Checklist
- 1 Connect via SSH
Open your terminal and connect to your instance using the root credentials or SSH keys supplied by your hosting provider:
ssh root@your_server_ip - 2 Update the System Package Repository
Refresh package listings and apply outstanding patches depending on your operating system architecture:
Ubuntu / Debian:apt update && apt upgrade -yCentOS / AlmaLinux / RHEL:dnf update -y - 3 Configure Server Hostname
Map a Fully Qualified Domain Name (FQDN) targeting your virtual instance:
hostnamectl set-hostname yourserver.yourdomain.com - 4 Create a Sudo Non-Root Deployment User
Avoid daily root logins by setting up an isolated user space with root privileges:
adduser deployuserAssign Permissions (Ubuntu/Debian):usermod -aG sudo deployuserAssign Permissions (CentOS/AlmaLinux):usermod -aG wheel deployuser - 5 Set Up SSH Key Authentication
Execute this command from your local workstation's terminal to mirror your cryptographically secure public identity onto the host:
ssh-copy-id deployuser@your_server_ip - 6 Configure the Firewall Framework
Ensure ports are blocked by default while explicitly verifying that your current SSH connection is whitelisted:
Ubuntu (UFW):ufw allow OpenSSHCentOS / AlmaLinux (firewalld):
ufw enablefirewall-cmd --permanent --add-service=ssh
firewall-cmd --reload - 7 Set the Correct Timezone
Synchronize log timelines with your specific operational timezone framework:
timedatectl set-timezone Asia/Kolkata - 8 Install Essential Environment Utilities
Equip your instance terminal with essential network tools and basic monitoring runtime software:
Ubuntu / Debian:apt install -y curl wget git vim htop unzip fail2banCentOS / AlmaLinux:dnf install -y curl wget git vim htop unzip fail2ban - 9 Disable Root SSH Authentication
Important: First, ensure your custom user account can successfully open an independent sudo session. Then, access your configuration configuration environment:
Edit file:/etc/ssh/sshd_configand modify key property to: PermitRootLogin noApply modification parameters immediately by executing a system daemon refresh:
systemctl restart sshd
Security Warning
Please proceed to complete our comprehensive VPS Infrastructure Hardening Manual directly after finalizing these checklist items. Automated bots and discovery scrapers scan unhardened public cloud allocations within minutes of deployment online.