This streamlined automation script is designed for the initial setup of Ubuntu 22.04 servers. It configures security settings and installs essential management tools.
- Non-root user creation with sudo privileges
- UFW firewall configuration for enhanced security
- SSH hardening by disabling root login and enforcing key-based authentication
- Fail2ban installation for additional SSH protection
- Optional installation of Cockpit, Docker, and Portainer for easy server management and containerization
Execute the following command on your server as root:
bash <(curl -s https://raw.githubusercontent.com/Eth030/ubuntu-post-install-script/main/setup.sh)
Follow the on-screen prompts to:
- Specify the new user's name
- Paste the public SSH key for secure login
- Select optional software to install
Distributed under the MIT License.