To avoid a waste of time downloading, unzipping and uploading the WordPress files, I used this method to install it through ssh on my 1&1 hosting (the $ symbol is just to show that it’s a console command, there’s no need to digit it):
Connect to your server via ssh
ssh yourusername@yourserver
Insert password when requested
Once connected, download the latest version of WordPress
$ wget http://wordpress.org/latest.tar.gz
Unarchive the downloaded file, where the parameter x is for extract, z is for the gzip format used and f is to specify from which file
$ tar -zxf lastest.tar.gz
Rename the created wordpress folder to the desired one
$ mv wordpress/ blog/
Follow the Famous 5-Minute Install skipping point 1 and 5, while for the point 3 and 4 work directly on the server. The file can be renamed through ssh
$ mv wp-config-sample.php wp-config.php
and edited using any console editor the server has installed, such as nano or vim.