Skip to content

CLI Reference

CtrlUserKnown edited this page Jul 22, 2026 · 1 revision

CLI Reference

Running ssm with no arguments opens the Interactive TUI. Everything the TUI does is also available via the CLI, so ssm works well in scripts and setup flows.

ssm [--version] [--help] [-c USER@HOST[:PORT]] [-l] [--import [PATH]]

Flags

Flag Description
(none) Launch the full-screen TUI
-c USER@HOST[:PORT] Connect directly to a host
-l, --list Print saved sessions as a table
--import [PATH] Import hosts from an ssh_config file (default ~/.ssh/config); skips names that already exist
--version Print version
--help Print help

Examples

# Launch the TUI
ssm

# List saved sessions
ssm --list

# Connect directly (no TUI)
ssm -c user@host
ssm -c user@host:2222

# Import hosts from your SSH config
ssm --import                    # ~/.ssh/config
ssm --import /path/to/ssh_config

See also: Interactive TUI · SSH Config Import · Configuration.

Clone this wiki locally