Install BashEdge on Ubuntu without a control panel
On a server with no control panel, BashEdge serves its own dashboard. If nginx is installed, BashEdge also turns on site-name logging so it can tell your sites apart.
Before you start
- Root SSH access to the server.
- A 64-bit x86 (x86_64) server with systemd and curl.
- Your install command from the BashPilot dashboard. It contains a one-time install token that is valid for one hour.
Install
Run the command from your dashboard as root. It looks like this:
curl -sSL https://bashedgedownloads.bashpilot.com/install-bashedge.sh | bash -s -- --install-token <your-token>
The installer:
- checks the server (root, architecture, systemd, curl and nftables) and installs nftables if it is missing,
- downloads BashEdge and verifies its checksum before running it,
- activates your licence for this server,
- adds BashEdge to your control panel,
- starts BashEdge in monitor mode and installs the
bashedgecommand.
When it finishes you see BashEdge is installed and running in MONITOR mode.
Open the dashboard
-
1
Set a sign-in
The dashboard will not open until it has one. This creates a username and a 6-digit code:
bashedge set-password
systemctl restart bashedge-agent
The dashboard then listens on https://127.0.0.1:61444, on the server itself only, with a self-signed certificate. Reach it from your computer through an SSH tunnel:
ssh -L 61444:127.0.0.1:61444 root@your-server
Then open https://127.0.0.1:61444 in your browser. The certificate fingerprint to compare with your browser's warning is printed in the BashEdge log:
journalctl -u bashedge-agent | grep "certificate SHA-256"
Secure the sign-in
| Command | What it does |
|---|---|
bashedge set-password | Set the sign-in. A username is generated if you do not give one with --user. |
bashedge set-code | Change the 6-digit code. |
bashedge whoami | Show the dashboard username. |
bashedge 2fa --enable | Use an authenticator app. bashedge 2fa --disable is the way back in if you lose it. |
bashedge login-unlock | Clear sign-in lockouts. |
Next steps
Let BashEdge watch real traffic, then follow Getting started to review what it found and turn protection on.
Last updated · Applies to BashEdge