Used by us internally, this guide walks you through the process of configuring SSH access, running the installation script, and performing the post-install setup for your Ubuntu LTS server.
- After downloading the repository to your server, copy your SSH public keys into the "your_keys" directory.
- Run the installation script.
sudo chmod +x install.sh && sudo ./install.sh
This will:
- Update all packages.
- Install necessary packages.
- Use the provided SSH credentials to configure and create a user named
maintainer
. - Configure UFW.
- Configure automatic security updates.
- Configure NTP.
- Set a password for
maintainer
user:
sudo passwd maintainer
- Unlock the
maintainer
account:
sudo passwd -u maintainer
If you need to remove an old user account (e.g., olduser
):
# Kill any running processes
sudo pkill -u olduser
# Delete the account and its home directory
sudo userdel -r olduser
After installation and post-install steps:
- Restart the server.
- Connect via SSH:
ssh -p 18156 maintainer@server