Initial Server Setup
The first steps after provisioning a new VPS are crucial for establishing a secure foundation.
01Connect to Server
Connect to your server for the first time as the root user.
Terminal
ssh root@YOUR_SERVER_IP02System Update
Ensure your system has the latest security patches and software updates immediately.
Terminal
sudo apt update && sudo apt upgrade -y03Create Non-Root User
Running commands as root is risky. Create a new user with sudo privileges for daily operations.
Terminal
# Create the new user
sudo adduser new_user
# Add the user to the sudo group
sudo usermod -aG sudo new_user
# Switch to the new user
su - new_userWARNING: From this point forward, perform all actions as this new user.