Setup script to set up VPS servers the way I like them.
I advise adding your own SSH key into the script. Use this verbatim and you'll be giving me control of your servers.
Usage:
git clone https://github.com/actuallymentor/vps-setup-ssh-zsh-pretty.git setup && cd setup
# CHANGE THE key.pub FILE TO YOUR KEY
bash setup.sh
cd .. && rm -rf ./setup
To run this script silently (skips firewall and nonroot user), pass true
as the first argument:
bash setup.sh true
- This script assumes default config files for
sshd
andunattended-upgrades
- This will disable password-based authentication on your system, make sure you have an ssh key installed or you will not be able to SSH into your server at all
- An implicit assumption is that you run this script from a root user that logs in via an ssh key