by darkmage
- Need VPS credits? Visit my DigitalOcean referral link: https://m.do.co/c/47d099644937
- https://www.evildojo.com
- https://x.com/evildojo666
- Based on: https://blog.codelitt.com/my-first-10-minutes-on-a-server-primer-for-securing-ubuntu/
Usage:
./first10min.sh <username> [ssh_keyfile]
- Spin up a brand new VPS.
- Copy
first10min.sh
and your new user's ssh keyfile over (if using one): How to set up an SSH key:scp first10min.sh darkmage_keyfile.pub root@newvps:.
ssh root@newvps
chmod +x first10min.sh
./first10min.sh darkmage [darkmage_keyfile.pub]
After running the script, you'll have to deal with 3 prompts:
- The prompt for a new root password.
- The prompt for your new user's password.
- The prompt to restart
ufw
.
There is some commented-out code that would install the go
runtime if you decide you need certain tools, like ProjectDiscovery's tool suite.