Skip to content

HostEONS – Best VPS, Dedicated Servers and Web Hosting

Your Web and VPS Host for EONS

Main Navigation

  • Home
  • About HostEONS

Tag: VPS Best Practices

How to Monitor Login Attempts and File Changes on Your VPS

hosteons June 11, 2025 Leave a Comment on How to Monitor Login Attempts and File Changes on Your VPS

When you manage your own VPS, keeping it secure goes far beyond setting up a strong password or using SSH keys. One of the most important — and often overlooked — tasks is monitoring login attempts and file changes.

If someone tries to brute-force their way into your server or modifies system files without authorization, you need to know immediately. In this post, we’ll walk you through simple tools and methods to keep an eye on your VPS security 24/7.


🔍 Why Monitoring Matters

Cyberattacks aren’t always obvious. Hackers often:

  • Try to gain access via repeated failed logins
  • Modify configuration files to install backdoors
  • Inject malicious code into websites or scripts
  • Use rootkits to hide their presence

By monitoring login attempts and file changes, you can detect suspicious activity early and prevent damage before it escalates.


🛡️ Monitor Login Attempts with 

Fail2Ban

✅ What It Does:

Fail2Ban scans your log files (like /var/log/auth.log) and bans IPs that show signs of malicious behavior, such as too many failed login attempts.

🔧 How to Install:

sudo apt update && sudo apt install fail2ban -y

📂 Basic Configuration:

The main config file is located at:

/etc/fail2ban/jail.local

A sample rule to monitor SSH:

[sshd]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 3

Fail2Ban automatically updates your firewall to block suspicious IPs.


🗂️ Monitor File Changes with 

AIDE

 (Advanced Intrusion Detection Environment)

✅ What It Does:

AIDE scans the file system and creates a baseline. It then alerts you when files are modified, added, or deleted.

🔧 How to Install:

sudo apt install aide -y

🛠️ Initialize the Database:

sudo aideinit
sudo cp /var/lib/aide/aide.db.new /var/lib/aide/aide.db

📊 Run Regular Checks:

sudo aide --check

For automation, schedule this via cron and configure it to email alerts.


🔁 Real-Time File Monitoring with 

inotify-tools

For lightweight, real-time file monitoring (e.g., for specific web directories), use inotify-tools.

🔧 Install:

sudo apt install inotify-tools -y

Example: Watch for changes in 

/var/www/html

:

inotifywait -m -r /var/www/html

This tool is great for developers and sysadmins wanting immediate feedback on file activity.


✉️ Optional: Email Alerts for Login & File Events

Combine these tools with email notifications or integrate them with your external monitoring system (Zabbix, Prometheus, or even a simple bash + mail setup) for real-time alerting.


🧠 Best Practices

  • 🔐 Use SSH keys instead of passwords
  • 🔒 Disable root login via SSH
  • 🚫 Change default SSH port
  • 📉 Monitor logs daily or automate alerting
  • 🧾 Keep audit trails and backups

💡 All Hosteons VPS & VDS Plans Support These Tools

Whether you’re using a Budget KVM VPS, Ryzen KVM VPS, or Ryzen 7950X VDS, all of these monitoring tools can be installed and configured quickly.

We offer full root access and support popular Linux distributions like Ubuntu, Debian, AlmaLinux, and CentOS — perfect for custom security setups.


🔒 Secure Your VPS Before It’s Too Late

Don’t wait until something goes wrong. Set up login and file monitoring today — and stay in control of your VPS.

Have questions? Need help setting it up? Reach out to Hosteons Support — we’re here to help!

Why You Should Use SSH Keys Instead of Passwords on Your VPS

hosteons June 7, 2025 Leave a Comment on Why You Should Use SSH Keys Instead of Passwords on Your VPS

When managing your VPS or Virtual Dedicated Server (VDS), security should always come first. While many users rely on traditional passwords for remote access, SSH keys offer a far more secure and convenient alternative.

At Hosteons, we strongly recommend using SSH key authentication to secure your VPS access — and here’s why.


🔐 What Are SSH Keys?

SSH (Secure Shell) keys are a pair of cryptographic keys used to authenticate with a remote server:

  • Public Key: Stored on your VPS (e.g., in ~/.ssh/authorized_keys)
  • Private Key: Stored securely on your local device (e.g., ~/.ssh/id_rsa)

When you try to connect, your device proves ownership of the private key — no need to transmit a password.


🚫 The Problem with Passwords

  • Easily guessed or brute-forced
  • Often reused across multiple accounts
  • Susceptible to phishing or keylogging
  • Require manual entry each time

If your password is weak or exposed, your server is vulnerable.


✅ Benefits of Using SSH Keys

1. 

Stronger Security

SSH keys are typically 2048-bit or 4096-bit, which are practically uncrackable by brute force.

2. 

No Password Transmission

No password is sent over the network, making it immune to interception.

3. 

Convenience

You can set up password-less login using your key, often combined with an SSH agent or passphrase.

4. 

Script-Friendly

Automated deployments and Git-based workflows rely on SSH keys for secure, non-interactive authentication.

5. 

Block Brute-Force Attacks

Once password authentication is disabled, bots and attackers can no longer guess credentials.


🛠️ How to Set Up SSH Key Authentication

  1. Generate a Key Pair (on your local machine):
ssh-keygen -t rsa -b 4096
  1. Upload the Public Key to Your VPS:
ssh-copy-id user@your-vps-ip
  1. Or manually place the public key into ~/.ssh/authorized_keys
  2. Disable Password Authentication:Edit /etc/ssh/sshd_config on your VPS:
PasswordAuthentication no
  1. Then restart the SSH service:
systemctl restart sshd

🔒 Combine with Fail2Ban and Firewall

For maximum protection:

  • Use Fail2Ban to block repeated failed login attempts
  • Limit access to port 22 using UFW or CSF firewall
  • Change the default SSH port (optional)

🧠 Summary

Using SSH keys instead of passwords is one of the simplest yet most powerful steps you can take to secure your VPS or VDS.

At Hosteons, all our KVM VPS, Ryzen VPS, and Ryzen 7950X VDS plans support full SSH key authentication out of the box.

Take 2 minutes to set it up — and save yourself from countless security headaches.

Primary Sidebar

Recent Posts

  • 💸 How to Pay for Hosting with Cryptocurrency: A Step-by-Step Guide
  • 🌍 How Hosteons Supports Users from Over 30 Countries with Local Payment Options
  • 为什么选择 Hosteons Ryzen VDS,而不是传统 VPS?
  • Why Choose Hosteons Ryzen VDS Over Traditional VPS Hosting?
  • 幕后揭秘:Hosteons 如何在 2 分钟内部署您的 VPS

Recent Comments

  • ✅ What Makes a Hosting Provider ‘Reliable’? A Behind-the-Scenes Look – HostEONS – Best VPS, Dedicated Servers and Web Hosting on 9288 VPS Safely Migrated, how did we dodge the DEATH BALL ? How a Hunch Saved the Business and Data of Thousands of Clients
  • 💡 What Really Matters When Choosing a VPS Provider? (Hint: It’s Not Just Price) – HostEONS – Best VPS, Dedicated Servers and Web Hosting on 9288 VPS Safely Migrated, how did we dodge the DEATH BALL ? How a Hunch Saved the Business and Data of Thousands of Clients
  • So what’s new with hostEONS after the Dedipath Drama ? – HostEONS – Best VPS, Dedicated Servers and Web Hosting on 9288 VPS Safely Migrated, how did we dodge the DEATH BALL ? How a Hunch Saved the Business and Data of Thousands of Clients
  • hostEONS: They Survived DediPath and are Thriving in Six Locations! - LowEndBox on 9288 VPS Safely Migrated, how did we dodge the DEATH BALL ? How a Hunch Saved the Business and Data of Thousands of Clients
  • One more Datacentre Location Being Added in Salt Lake City – HostEONS – Best VPS, Dedicated Servers and Web Hosting on 9288 VPS Safely Migrated, how did we dodge the DEATH BALL ? How a Hunch Saved the Business and Data of Thousands of Clients

Archives

  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • December 2023
  • September 2023
  • May 2023
  • April 2023
  • February 2023
  • July 2022
  • March 2021
  • February 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • March 2020
  • December 2019
  • October 2019
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • March 2019
  • February 2019
  • January 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018

Categories

  • Chinese
  • Cyber Security
  • French
  • General
  • German
  • Hosting Industry Insights
  • Marketing and Business Growth
  • News
  • Press Release
  • Russian
  • Services
  • Spanish
  • Tutorials

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

HostEONS – Best VPS, Dedicated Servers and Web Hosting © 2025 . All Rights Reserved