Install BashEdge on Ubuntu without a control panel

Summary: Install BashEdge on a server with no control panel, where BashEdge serves its own password-protected dashboard.

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:

shell
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 bashedge command.

When it finishes you see BashEdge is installed and running in MONITOR mode.

Open the dashboard

  1. 1

    Set a sign-in

    The dashboard will not open until it has one. This creates a username and a 6-digit code:

shell
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:

shell
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:

shell
journalctl -u bashedge-agent | grep "certificate SHA-256"

Secure the sign-in

CommandWhat it does
bashedge set-passwordSet the sign-in. A username is generated if you do not give one with --user.
bashedge set-codeChange the 6-digit code.
bashedge whoamiShow the dashboard username.
bashedge 2fa --enableUse an authenticator app. bashedge 2fa --disable is the way back in if you lose it.
bashedge login-unlockClear 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