Setting up your VPS

Its very easy to setup a VPS considering the tools now we have on our exposure. This post is more of a self note to myself, so pardon me for not explaining things.

To quickly setup latest NginX, MySQL, PHP (with APC and Suhosin) & exim, just use this script https://github.com/vladgh/VladGh.com-LEMP

These instructions will get things up and running a secure server.

Buy a VPS which will get you root access to your server.

Create a new user with sudo powers which will be actually used to do everything on a regular basis since using root is not recommended.

adduser ashfame
usermod -a -G sudo ashfame

Setup iptables (firewall)

From your new account, setup your key based login, disable root login & password login so that only key based logins are allowed.

sudo nano /etc/ssh/sshd_config
PasswordAuthentication no
PermitRootLogin no
UsePAM no

Links which explain the above things in detail:

https://library.linode.com/securing-your-server

http://stackful-dev.com/linux-101-hardening-ssh.html


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *