How to Set Up Your Poland VPS — Initial Configuration Guide
Get your Inferno VPS Poland server up and running securely with this comprehensive setup guide. We cover everything from initial system updates to security hardening, firewall configuration, Docker installation, and more.
Prerequisites — What You Need Before Starting
Before beginning the setup process, ensure you have the following ready:
- VPS Credentials: Your server IP address, root password, and control panel login from the Inferno VPS welcome email.
- Local Terminal: A terminal application such as Terminal (macOS/Linux), PowerShell or Windows Terminal (Windows), or any SSH client.
- SSH Client: OpenSSH is pre-installed on macOS and Linux. Windows 10/11 includes OpenSSH Server as an optional feature.
- Basic Linux Knowledge: Familiarity with basic terminal commands will help, though each step is explained in detail.
Step 1 — Connect to Your VPS via SSH
Your first action after receiving your Inferno VPS Poland credentials is to establish an SSH connection. Open your terminal and run:
ssh root@YOUR_SERVER_IP
Replace YOUR_SERVER_IP with the IP address from your welcome email. When prompted, enter the root password. You will see a warning about the host key fingerprint on your first connection — type yes to continue. Once authenticated, you will see the root shell prompt, indicating you are now connected to your Warsaw VPS.
Step 2 — Update Your System Packages
Always start by updating your system to ensure you have the latest security patches and software versions. On Ubuntu and Debian-based systems, run:
apt update && apt upgrade -y
This command refreshes the package lists and upgrades all installed packages to their latest versions. The -y flag automatically confirms the upgrade prompt. Depending on how many packages need updating, this process may take a few minutes. After the upgrade completes, you can also remove unnecessary packages:
apt autoremove -y && apt autoclean
This frees up disk space by removing packages that were automatically installed as dependencies but are no longer needed.
Step 3 — Create a Non-Root User
Running as root for daily tasks is a security risk. Create a non-root user with sudo privileges for regular administration:
adduser deploy
usermod -aG sudo deploy
Replace deploy with your preferred username. Set a strong password when prompted. The usermod command adds the user to the sudo group, granting administrative privileges. Verify sudo access by switching to the new user and running a test command:
su - deploy
sudo whoami
If the output shows root, sudo is configured correctly. You will use this user for all subsequent management tasks.
Step 4 — Set Up SSH Key Authentication
SSH keys provide a more secure and convenient authentication method than passwords. If you do not already have an SSH key pair on your local machine, generate one:
ssh-keygen -t ed25519 -C "your-email@example.com"
Accept the default file location and optionally set a passphrase for additional security. Then copy the public key to your VPS:
ssh-copy-id deploy@YOUR_SERVER_IP
After copying the key, test that key-based authentication works by logging in without a password:
ssh deploy@YOUR_SERVER_IP
Once SSH key authentication is confirmed, disable password-based login for enhanced security. Edit the SSH configuration file:
sudo nano /etc/ssh/sshd_config
Find and modify the following settings:
PasswordAuthentication no
PermitRootLogin no
Save the file and restart the SSH service:
sudo systemctl restart sshd
Keep your current SSH session open when testing these changes. If something goes wrong, you still have an active connection to fix the configuration.
Step 5 — Configure the UFW Firewall
UFW (Uncomplicated Firewall) provides a user-friendly interface for managing iptables rules. Install and configure it to protect your server:
sudo apt install ufw -y
sudo ufw default deny incoming
sudo ufw default allow outgoing
Then allow only the services you actually need:
sudo ufw allow ssh
sudo ufw allow http
sudo ufw allow https
If you are running specific applications, open their ports accordingly. For example, a VPN server might need port 1194 (WireGuard) or port 443 (OpenVPN), while a game server requires its specific game ports. Enable the firewall:
sudo ufw enable
Verify the firewall status and rules:
sudo ufw status verbose
The firewall will now block all incoming connections except those you have explicitly allowed, significantly reducing your server's attack surface.
Step 6 — Install and Configure Fail2ban
Fail2ban monitors log files for suspicious activity and automatically blocks IP addresses that show malicious signs, such as too many failed login attempts. Install it with:
sudo apt install fail2ban -y
Create a local configuration file to override defaults:
sudo nano /etc/fail2ban/jail.local
Add the following configuration:
[DEFAULT]
bantime = 3600
findtime = 600
maxretry = 5
[sshd]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
bantime = 86400
This configuration bans IPs for 24 hours after 3 failed SSH login attempts within a 10-minute window. Start and enable fail2ban:
sudo systemctl enable fail2ban
sudo systemctl start fail2ban
sudo fail2ban-client status sshd
Step 7 — Install Docker
Docker simplifies application deployment by packaging software into containers. Install Docker on your Ubuntu-based VPS:
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
Add your user to the Docker group to run commands without sudo:
sudo usermod -aG docker $USER
Log out and back in for the group change to take effect. Verify the installation:
docker --version
docker compose version
Docker is now ready for deploying containers on your Poland VPS.
Step 8 — Set the Correct Timezone
Setting the correct timezone ensures that log timestamps, cron schedules, and application times are accurate. List available timezones and set yours:
sudo timedatectl list-timezones | grep Europe
sudo timedatectl set-timezone Europe/Warsaw
Verify the timezone setting:
timedatectl
The output should show the timezone as Europe/Warsaw. This ensures all timestamps on your server reflect the correct local time for your Warsaw-based VPS.
Step 9 — Configure Swap Space
Swap space provides a safety net when your server runs out of physical RAM. This is particularly important on VPS plans with limited memory. Create a 2 GB swap file:
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
To make swap persistent across reboots, add it to /etc/fstab:
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Adjust the swapiness value to reduce swap usage preference (lower values prefer RAM):
echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf
Verify swap is active:
free -h
Frequently Asked Questions
How do I connect to my VPS for the first time?
Open a terminal and run: ssh root@YOUR_SERVER_IP. Replace YOUR_SERVER_IP with the IP from your welcome email. Enter the root password when prompted. We recommend switching to SSH key authentication immediately after first login for better security.
What is the best Linux distribution for beginners?
Ubuntu 24.04 LTS is the most beginner-friendly option due to its extensive documentation, large community, and user-friendly package manager (APT). It is well-supported and receives long-term updates for five years. Most tutorials and guides available online are written with Ubuntu in mind.
How do I secure my VPS against attacks?
Key security steps include: disabling root password login, setting up SSH key authentication, configuring UFW firewall to only allow needed ports, installing fail2ban to block brute-force attempts, keeping your system updated with security patches, using strong passwords for any remaining accounts, and considering two-factor authentication where possible.
Can I install Docker on my Poland VPS?
Yes, Docker runs perfectly on all Inferno VPS Poland plans. The Basic plan with 2 GB RAM is the minimum recommended for running Docker containers, while the Standard plan with 4 GB RAM provides more comfortable headroom for running multiple containers simultaneously. Follow the installation steps in this guide to get Docker up and running.
How often should I update my server?
Run system updates at least once a week, or set up automatic unattended updates for critical security patches. For production servers, it is wise to test updates in a staging environment before applying them to production. Use apt update && apt upgrade -y on Ubuntu/Debian systems, or set up unattended-upgrades for automatic security updates.
Need a Poland VPS to Practice?
Get your Inferno VPS Poland server starting at $3.49/month and follow along with this setup guide. NVMe SSD, 10Gbps bandwidth, and instant deployment included.
Get Your Poland VPS — From $3.49/mo