Useful snippets

SSH login via key file

create key pair and download the files (/.ssh)
ssh-keygen -t rsa -b 2048
add private key to authorized keys /.ssh/authorized_key
cat >> /.ssh/authorized_keys
login from local machine
ssh -i /.ssh/keyfile

phpMyAdmin disable root login

$cfg['Servers'][$i]['auth_type'] = ‘cookie’; 
$cfg['Servers'][$i]['AllowRoot'] = FALSE;

Create SSL certificate signing request (csr)

openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr

Point DNS to new server but fetch content from old server via apache mod_proxy

ProxyPass /
ProxyPassReverse /
ProxyPreserveHost On