Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

TUI Mode

Launch a full-screen terminal interface for browsing and managing connections, sessions, environments, files, and tunnels:

bayesian-ssh tui

Tabs

The TUI is organized into five tabs. Switch with number keys or Tab / Shift+Tab.

KeyTabPurpose
1ConnectionsBrowse, search, edit, and connect to saved hosts
2HistoryInspect past sessions and reconnect
3ConfigSwitch, create, or delete environments
4FilesSFTP file browser on the selected host
5TunnelsStart, list, and stop SSH port-forward tunnels

Global Keybindings

KeyAction
15Jump to tab
Tab / Shift+TabNext / previous tab
?Help overlay
qQuit
rRefresh current tab

Connections Tab

KeyAction
/ k · / jNavigate
PgUp / PgDnPage navigation
EnterConnect to selected host
dToggle detail pane
/Filter by name
tFilter by tag
fToggle grouping by tag
s / SCycle sort field / toggle direction
vToggle compact / two-line rows
aAdd a new connection (9-field form)
eEdit the selected connection
pPreview the SSH command that would run
PAsync TCP-ping the host (shows indicator)
SpaceToggle multi-select on the row
Ctrl+ASelect all
xBatch-delete selected connections (with confirmation)
:Quick-connect bar — type [user@]host[:port] for an ad-hoc session

Detail Pane

Press d (or Enter after enabling) to open a side panel showing all connection fields, the full SSH command that would be executed, and contextual hints.

Add / Edit Form

Press a for a new connection or e to edit the selected one. The 9-field overlay covers Name, Host, User, Port, Bastion, Bastion User, Key Path, Kerberos, and Tags. Required fields are validated on save.

Ping Indicators

Press P to TCP-ping the selected host in the background:

  • 🟢 Green ● — reachable, with round-trip time
  • 🔴 Red ● — unreachable
  • 🟡 Yellow ◌ — check in progress

For bastion connections, the bastion host is pinged on port 22.

Visual Indicators

  • [B] badge — bastion host is configured
  • [K] badge — Kerberos is enabled
  • Alternating row backgrounds for readability
  • Mode-coloured status-bar badge

History Tab

Inspect past SSH sessions with sortable columns and reconnect on demand.

KeyAction
/ Navigate sessions
EnterReconnect to the session’s host
sCycle sort column (Date, Name, Duration, Status)
/Filter by connection name
fToggle “failed only”

Config Tab

Manage environments without leaving the TUI. The active environment is highlighted.

KeyAction
/ Navigate environments
EnterSwitch to the selected environment
aCreate a new environment
dDelete the selected environment (with confirmation)

Files Tab

Browse the remote file system of the selected host over SFTP.

KeyAction
/ Navigate entries
EnterEnter directory
BackspaceGo up one directory
uUpload a local file
gDownload (get) the selected file
nCreate a new directory
rRename the selected entry
DDelete the selected entry (with confirmation)

Tunnels Tab

Start and manage SSH port-forward tunnels.

KeyAction
aOpen “new tunnel” form (local port, remote host, remote port)
EnterStart the highlighted tunnel
xStop the selected tunnel

TUI Logging

When the TUI is active, tracing output is routed to ~/.local/share/bayesian-ssh/tui.log to prevent log lines from corrupting the alternate-screen display.

TUI Mode

Launch a full-screen terminal interface for browsing and managing connections:

bayesian-ssh tui

Keybindings

KeyAction
Up / kNavigate up
Down / jNavigate down
PgUp / PgDnPage navigation
EnterConnect / Toggle detail pane
/Search
tFilter by tag
dToggle detail pane
eEdit connection inline
sCycle sort field (Name, Host, Last Used, Created)
SToggle sort direction
vToggle compact/expanded view
rRefresh
?Help overlay
qQuit

Features

Detail Pane

Press Enter or d on a connection to open a side panel showing:

  • All connection fields
  • Full SSH command preview
  • Contextual hints

Inline Editing

Press e to edit any connection directly from the TUI:

  • 8-field overlay with cursor navigation
  • Changes are written back to the database on save

Sorting

  • Press s to cycle through sort fields: Name, Host, Last Used, Created
  • Press S to toggle ascending/descending order
  • The current sort indicator is shown in the header

Compact View

Press v to toggle between:

  • Single-line rows - compact view showing key info
  • Two-line rows - expanded view with more detail

Visual Indicators

  • [B] badge indicates bastion host is configured
  • [K] badge indicates Kerberos is enabled
  • Alternating row backgrounds for readability
  • Mode-coloured status bar

TUI Logging

When the TUI is active, tracing output is routed to ~/.local/share/bayesian-ssh/tui.log to prevent log lines from corrupting the terminal display.