BASTIONOSDocs
bastion-os.com
EN

Start here

First session

Ten minutes, in the console. At the end, a session appears in the audit with its recording and its commands.

1. Sign in and enrol a second factor#

Open https://bastion.example.com and sign in as admin with the password the installer printed. The console asks you at once to enrol an authenticator app (any TOTP app: FreeOTP, Aegis, Google Authenticator, 1Password...). Scan the QR code, type a code, and keep the ten recovery codes it shows once.

Then, in Settings:

  • change the generated password;
  • add a security key or a passkey, if you have one;
  • choose the language, the layout (Console or Classic) and the theme.

2. Add an asset#

In Console → Resources → Assets, create an asset:

Field Example
Name web-01, the name users type after @
Address 10.0.0.12 or web-01.internal.example.com
Platform Linux
Protocols ssh on port 22
Folder optional, a node of the tree such as Production/Web

The gateway trusts the server's host key on the first connection, then requires the same key every time.

3. Add an account and its secret#

In Console → Resources → Accounts, create the account root (or a sudoer) on web-01, then write its password or private key. The secret goes straight to OpenBao. From now on, nobody can read it back from the console, you included.

4. Allow someone to connect#

In Console → Access control → Access policies, create a policy:

  • Effect: allow
  • Who: your user, or a group
  • What: the account root@web-01, the asset, or a whole folder
  • Actions: connect (add upload and download for file transfers)

Leave the hours and networks empty for now. Before saving, the simulation tells you what the policy would decide for a given user, account, address and time.

5. Connect#

From My access, the home page, click Terminal on the row of web-01. Or from your own terminal:

$ ssh -p 2222 'admin#root@web-01'@bastion.example.com

The gateway asks for your BastionOS password and a code of your app, then opens the shell on web-01 as root.

6. See it in the audit#

In Audit → Sessions, the connection is there: who, which account, from where, the policy that allowed it. Open it to replay the terminal, and see its commands in Audit → Commands. The sign-in, the policy you wrote and the connection are in Audit → Audit log.

Next steps#

© 2026 BastionOS · Source-available, self-hosted privileged access Contact