Your First Instance: Basic Configuration & Security
Time Required: 5-15 Minutes, depending on familiarity with Linux server setup
Whether you're setting up your database server, a Docker server, or most anything else, the initial setup is the same -- enough so that we'll create a snapshot once we're done and use that as our starting point for future droplets.
- Login as Root; add a new user for yourself and configure Root privileges
- Update your Ubuntu Installation
- Add Public Key authentication
- (Optional) Disable password logins
- Basic Firewall Configuration
Follow the link in your welcome email to the initial setup guide, but as of October 2018 it is here:
It's a short guide; don't skip any steps.
Since we're building a template that we're going to re-use, it's a good idea to keep your OS packages current:
sudo apt-get update # Fetches the list of available updates
sudo apt-get upgrade # Strictly upgrades the current packages
After completing the Initial Setup Guide, you'll have a cloud instance on the public Internet that is accessible only via SSH -- but it is accessible to everyone via SSH, so let's take the opportunity to deploy DigitalOcean's provider-level firewall and limit SSH connections -- either just to our current computer or perhaps to our work subnet. You can remove or alter these rules later; a VPN is safest, but we haven't installed a VPN client on our instance so we'll use our current public IP address for our test run.