Sysadmin Cheat Sheet 2018-02-02T15:09:52+00:00

Create New User

Create USER without password and no stupid questions:

Authorise Public SSH Key

Become the USER for which you want to add the pubkey (may be root):

Then curl it in from GitHub:

Swedish Time Zone

Automatic:

Interactive:

Verify:

Stop SSH Cry Wolf

Add to ~/.ssh/config

Bound Ports Security Audit

List the currently bound ports on the server:

Fix Postfix master process bound to 0.0.0.0:25 for Local Address:

Install PHP Composer

Composer has some undocumented requirements:

This command installs composer system wide:

Verify:

Enforce HTTPS in .htaccess:

Enable PHP Errors in .htaccess: