Need a Minecraft server? BeastNode delivers awesome performance at a great value!

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

What can I enter for the hostname when ordering?

The hostname is used to identify your VPS (or dedicated server) during the ordering process. It...

How To Set A Hostname For Your BeastNode VPS

To set a host name for your BeastNode VPS running on a RedHat distro (CentOS for example), just...

Common Linux SSH/Shell Commands

This is a list of frequently used Linux SSH/shell commands. It may not apply to all Linux...

How to Login to Your VPS

In this guide, we'll be going over how to login to your VPS via SSH terminal/console....

Accessing your VPS Server using SFTP (Secure FTP)

There are two ways to access your VPS files - SFTP or via SSH commands. SSH commands are for more...