Atlantic.Net Blog

How to Lock Down Your Linux Cloud Server

Verified and Tested 02/05/15

Introduction

This tutorial will provide you some basic steps to help you lock down and secure your cloud Linux server with Atlantic.Net. By no means do these steps have to be used in order nor do you have to use all of the steps. They are recommendations on securing your server through simple means that take just a little of your time to set up or configure.

Prerequisites

For this tutorial, all that’s pre-required is that you have a Linux private cloud hosting with Atlantic.Net.

Securing your Linux Cloud server

Changing the SSH Port

Changing your SSH Port in CentOS

Changing your SSH Port in Ubuntu and Debian

 

Let’s Limit the root User

Limiting Your root User in CentOS

Limiting Your root User in Ubuntu and Debian

 

IPTables

Locking down your CentOS server with IPTables

Locking down your Ubuntu or Debian server with IPTables

IPTables in General

 

Let’s get those Brute Forcers! Using fail2ban

Basic Use of fail2ban in CentOS

Basic Use of fail2ban in Ubuntu and Debian

 

Learn more about Atlantic.Net’s hosting services, including HIPAA-complaint cloud hosting.

Get a $250 Credit and Access to Our Free Tier!

Free Tier includes:
G3.2GB Cloud VPS a Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year