A guided interactive wizard that hardens your VPS step by step.
No guesswork, no manual config — just answer a few prompts and you're done.
The wizard walks you through 3 phases:
- Install & authenticate Tailscale — connects your VPS to your private network
- Harden SSH — restricts access to your Tailscale IP, disables password auth, disables root login
- Create a non-root sudo user — sets up a safe admin account to replace root access
- Confirmation prompt before every critical change
- Automatic rollback if SSH validation fails or you can't reconnect
- Verification prompts after SSH hardening and user creation — you confirm it works before moving on
- Idempotent: safe to re-run if a step was already completed
curl -fsSL https://raw.githubusercontent.com/rankgnar/vps-secure-setup/main/install-wizard.sh | sudo bashOr clone and run locally:
git clone https://github.com/rankgnar/vps-secure-setup.git
cd vps-secure-setup
sudo bash install-wizard.sh- Fresh VPS running Ubuntu or Debian
- Root access (run with
sudo) - A Tailscale account (free at tailscale.com)
MIT
