Need a Minecraft server? BeastNode offers the highest performance servers with DDoS protection!

Shop for plans now

Protect SSH with Fail2Ban on CentOS 6

Fail2Ban is an SSH security program that blocks SSH brute force attempts on your server (as well as for many other services such as Apache, Nginx, webmail, etc). Installing it is quite simple and can be done in a few steps:

1. Login to your VPS as root

2. Run the following commands (and press y when asked):
yum install epel-release
yum install fail2ban


3. Now copy the configuration file template:
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local


4. Start up the Fail2Ban service:
service fail2ban restart


5. The default settings are usually adequate, but you can further customize Fail2Ban by editing the config file located here:
/etc/fail2ban/jail.local
Make sure to restart the service after changing settings.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Install Team Fortress 2 Server on a VPS

To run your very own Team Fortress 2 server on a BeastNode VPS (running CentOS 6 64-bit, not...

How to Use the VPS Serial Console

The VPS serial console allows you to access your cloud VPS server with SSH directly from the back...

Install Minecraft Pocket Edition Server (Nukkit) on CentOS 7 64-bit

Installing Minecraft: Pocket Edition servers has never been easier with the advent of Nukkit (the...

Securing your VPS

Running a VPS can be risky if you do not go through with some basic security measures before...

How to Use a BeastNode VPS to Backup Your Minecraft Server

This guide will explain the basic steps for you to create your own backup VPS (running on CentOS...