Ubuntu: Allow SSH access for ‘root’ user
KB ID 0001317 Problem First of all not being able to connect to your Ubuntu server via SSH as root is ‘by design’, and it’s a perfectly good security measure. I do find it interesting that every hosting company I ever used, spin up a new machine and then email me the root password and they’ve enabled it anyway? I needed to enable this recently and the internet is full of posts saying ‘just edit the...
Ubuntu: Setting Up a WordPress Website with LEMP – Part 1
KB ID 0001318 Problem At the time of writing this site is running on CentOS7 LAMP (Linux Apache MySQL and PHP). Well I’m actually using MariaDB not MySQL as it’s ‘supposed’ to be a little faster, but they are similar enough to be accepted. I’m planning to migrate to Ubuntu 17 LEMP (Linux ‘EnginX’ MySQL and PHP) again with MariaDB. As the site is getting more traffic I want to utilise the...
Linux (CentOS) Securing and Hardening SSH / Shell Access
KB ID 0000881 Problem The following is by no means an extensive list of everything that can be done. It’s just a run though of what I would consider ‘good practice’. Solution Create a user for SSH and Remove Shell access for the ‘root’ user. 1. Connect to the server via SSH or open a terminal session and su to root. Create a new user then set and confirm the new users password. useradd {username} passwd...