Skip to main content

Quick start

Install RST Bastion on a Linux host from the offline package, read the initial administrator password and sign in for the first time.

A single-host installation needs a Linux host with Docker, the installation package and one run of install.sh. For the full procedure, see Installation.

Prerequisites

  • A Linux host, amd64 or arm64, with systemd.
  • Docker with the docker compose plugin (docker compose version prints a version).
  • A non-empty /etc/machine-id. The licence binds to the host through it; if it is missing, run systemd-machine-id-setup.
  • The installation package for the host's architecture, bastion-<version>-linux-<arch>.tar.gz, obtained from Reallysec.
  • Users' networks can reach port 8088 on the host (web console), and port 8089 if they use the built-in SSH service.

Installation

Unpack the package

The unpacked directory is the installation directory, and all data lives in its data/ folder. Using /opt/bastion as an example:

tar xzf bastion-<version>-linux-amd64.tar.gz
sudo mv bastion-<version>-linux-amd64 /opt/bastion

Run install.sh

cd /opt/bastion && sudo ./install.sh

The script loads the images, creates .env, generates a self-signed HTTPS certificate, installs the upgrade helper when run as root, then starts the containers and prints the URL. The package carries every image, so installation never contacts an image registry.

Read the initial administrator password

The initial administrator account is admin. Its password is in a file that only root can read:

sudo cat /opt/bastion/data/initial-admin-password

Sign in

Open https://<host IP>:8088 and sign in as admin with that password. The default certificate is self-signed, so the browser warns that it is not trusted; for production, replace it with your own, see Configuration.

On first sign-in you must change the password. Sign in again with the new password; the initial-admin-password file is then deleted automatically.

Next steps

  1. Add assets under Resources > Assets (资源管理 > 资产管理). See Assets.
  2. Create accounts for your engineers under Users (用户管理) and authorise assets for them. See Users and Asset authorisation.
  3. Set the password policy, session watermark and recording retention under System settings (系统设置). See System settings.
  4. To use access gateways, scheduled script jobs or online file editing, import a licence under System settings > Licence (授权). See Licence.
  5. Back up the data/ directory and .env regularly. See Upgrade and backup.

data/.encryption-key encrypts asset passwords and other secrets and must be backed up together with the database. If this file is lost, the encrypted data cannot be recovered.

Troubleshooting

The console does not open in the browser

Check the containers with docker compose ps and docker compose logs bastion. Make sure port 8088 is open in the firewall or security group and that you are using https://.

install.sh reports that /etc/machine-id is missing or empty

Run sudo systemd-machine-id-setup, then run install.sh again.

initial-admin-password is missing

The file is written only on first start and deleted after the password is changed. If the changed password is forgotten, see the FAQ.

On this page