I'd really like to learn more about this stuff to prevent this from happening, but I want to also understand what I'm doing.
Is there a site that explains all of this techno mumbo jumbo and what a disgruntled worker can do to your server with the access you've given him?
I don't have any single site link that would explain everything. As an overview it boils down to
Securing the way they connect to the server.
Restricting permissions and access on their user account
Intrusion detection and blocking people from access
Logging and keeping records of what they do if you need to reverse something
Understanding that root access can do anything to the server, so don't give root access out lightly
Each topic can easily get complicated and lengthy depending on how far you want to go.
A great solution is to use a script that sets all of this up for you. Figure out what you want, how
you want your box locked down, and just use a script to deploy those programs and settings for you.
This gives you reliability and accountability. This pays for itself once you use it on a second or even a third
server. Installing all this crap by hand is tedious, and getting configurations right is also boring. Automation
is key.
To make the point clearer, let's say you just setup a digital ocean server. Do you really want to install
15 packages, and configure each one of them manually? Are you sure you got all the settings? Did
you forget something? Did you say fuck it half way through? Did you just end up giving your VA root
access because you didn't know how to setup an account or configure sudo? Are you okay running
your business on a sever that is running old software and has GayDaddies defaults?
You could have your script setup all your packages, configure your SSH, OpenVPN server, firewall settings,
logging utilities, email reports, security settings, intrusion programs, and whatever else you need. You know
what your server can and can't do. You have account types for each type of worker, the ones you trust and don't
trust.
If you want to know for yourself start googling stuff.
Here are some topics to look into
How to secure SSH
How to configure fail2ban
How does OpenVPN work
How does Iptableswork
Bash scripting
Chef or Puppet tutorials (if you have a lot of servers)
How does sudo work
If you just want to be easy and painless just hire someone who can just write a script that you can re-use.