๐ Initial VPS Setup Guide: Step-by-Step
Once you're connected to your new VPS, it's essential to perform basic system setup. This ensures better security, performance, and stability. This guide covers everything you should configure on a fresh Linux VPS (Ubuntu, Debian, CentOS, etc.): from updates and SSH settings to firewall, users, and backups.
๐ฆ 1. Update the System
Install the latest security patches and package updates:
๐ค 2. Create a Non-root User
Don't use the root account for daily tasks. Create a new user with sudo rights:
๐ 3. Secure SSH Access
Disable root login and password authentication. Use SSH keys instead:
Then restart SSH:
๐ก 4. Set Up a Firewall (UFW)
For CentOS, use firewalld instead.
๐พ 5. Enable Automated Backups
Use cron jobs to back up your databases, files, and config files. Example:
๐ 6. Install Monitoring Tools
Recommended tools for system monitoring:
- ๐
htopโ process monitoring - ๐
vnstatโ bandwidth usage - ๐ง
logwatchโ log summarizer - ๐ฌ Email alerts via
ssmtpormsmtp
๐ Recommended Setup Sequence
- ๐ฆ Update system packages
- ๐ค Create a non-root user
- ๐ Secure SSH access
- ๐ก Enable a firewall
- ๐พ Configure backups and monitoring
Need help setting up your VPS? Contact Bit.Hosting support โ we'll guide you through the process.