DigitalOcean have posted a great article on securing a Linux server here.