Connecting to Ubuntu Servers With RSA Keys

Connecting to Ubuntu Servers With RSA Keys

Coding, Guide
I manage a bunch of internal servers and for those that aren't part of the wider web I like to use key pairs to speed up my sign ins and maintenance. Key-Based SSH Logins Key-based authentication is the most secure mode of authentication usable with OpenSSH. Key-based authentication has several advantages over password authentication, for example the key values are significantly more difficult to brute-force, or guess than plain passwords, provided an ample key length. Key-based authentication uses two keys, one "public" key that anyone is allowed to see, and another "private" key that only the owner is allowed to see. To securely communicate using key-based authentication, one needs to create a key pair, securely store the private key on the computer one wants to log in from, and store the…
Read More
Simple Changes to Secure Apache

Simple Changes to Secure Apache

Coding, Guide
Keep Updated You should update your linux settings no less than once a month. This will ensure that you are not running vulnerable technology. Remove Header Details / Disable Tokens When Apache web server generates any web pages or error pages, some important information about the version and other details implemented on the system are displayed in the web site server header. ex: Server: Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 Server at xx.xx.xx.xx Port 80 To ensure that the Apache HTTP web server does not broadcast this message to the whole world publicly and fix possible security issue, modify these two directives ServerTokens and ServerSignature in httpd.conf configuration file. Edit the /etc/apache2/httpd.conf Add the following: ServerSignature Off ServerTokens Prod Save and restart the apache web service. You server will then only identify itself as Server: apache…
Read More
Installing Nginx with PHP5 on Ubuntu 10

Installing Nginx with PHP5 on Ubuntu 10

Guide
There are a number of guide across the internet that break down how to install this setup. I had to use a couple different ones just to get it to work. Here's how I did it. Note: you should run this from the terminal - and as root (sudo -s) Step 1 - Install Ubuntu I installed it on a VM but it really doesn't matter. For the sake of this guide I downloaded Ubuntu 10.04.1 LTS version. Step 2 Install PHP FastCGI From the terminal sudo apt-get install php5-cgi Step 3 Install Nginx - latest stable The build in repo for Ubuntu is running version 7 - as of right now the latest stable is 8.54 so we need to update the repo and get the latest version. add-apt-repository ppa:nginx/stable…
Read More
Installing a Virtual LAMPP Server with VirtualBox and Ubuntu

Installing a Virtual LAMPP Server with VirtualBox and Ubuntu

Guide
Part 1 Install Virtual Box Download it free from virtualbox.org and run through the installer. Part 2 Download the latest Ubuntu software. I like the desktop version as I can do other things besides just run a server. Download the ISO here: http://www.ubuntu.com/getubuntu/download Part 3 Install Ubuntu on VirtualBox Launch VirtualBox and create an new virtual machine. When creating the machine, Virtual box will ask what type. Name your machine: Ubuntu Server Operating System: Linux Version: Ubuntu All the other settings are fine as they are setup by default. Once you are back at the Virtual Box select a machine screen, double click on your new Ubuntu Server. The first run Wizard appears. Follow the questions and when prompted to select the installation media, browse to the newly downloaded ISO you downloaded…
Read More