Skip to content

Instantly share code, notes, and snippets.

@mkell85
Last active January 20, 2018 07:48
Show Gist options
  • Save mkell85/463a6744ca8059695130ea77b50f481c to your computer and use it in GitHub Desktop.
Save mkell85/463a6744ca8059695130ea77b50f481c to your computer and use it in GitHub Desktop.
Steps to provision Ubuntu server
## 1. Update and upgrade with apt-get
> apt-get update -y
> apt-get -y upgrade
## 2. Add user "admin"
> adduser username
## 3. Configure ssh
a. Change ssh port
b. Setup keys
c. Disable login without key
d. Disable root login
## 4. Install nodejs
## 5. Install nginx
a. Download sources with modsecurty and build
b. Configure to work with https
c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment