Skip to content

Remote access

Splinterm supports two distinct SSH workflows without exposing a daemon network listener:

  • a native graphical client for a person using a remote account; and
  • a policy-scoped stdio relay for machine automation.

Transport is not interchangeable authority. OpenSSH authenticates the human graphical workflow. Machine operations remain governed by exact executable policy.

Profiles live at ${XDG_CONFIG_HOME:-~/.config}/splinterm/remotes.toml:

version = 1
[remotes.wintermute]
host = "wintermute"
user = "operator"
port = 22
identity_files = ["~/.ssh/id_ed25519"]
known_hosts_file = "~/.ssh/known_hosts"
connect_timeout_seconds = 15

The schema is strict. It does not accept arbitrary SSH options, commands, forwarding, environment, or shell fragments. Ordinary safe aliases, identities, certificates, agents, and proxy routing may still come from OpenSSH configuration; Splinterm supplies fixed safety overrides.

Inspect and probe without opening a Window:

Terminal window
splinterm remote list
splinterm remote inspect wintermute
splinterm remote check wintermute

remote inspect prints resolved non-secret settings and structured SSH argv. remote check performs bounded SSH, relay, daemon, Ping, and ListLairs probes without mutating topology.

Terminal window
splinterm --remote wintermute
splinterm --remote wintermute dojos
splinterm --remote wintermute reopen
splinterm --remote wintermute launch --working-directory /srv/project
splinterm --remote wintermute window --lair-id LAIR_ID --dojo-id DOJO_ID

Omitting the command opens the remote Recent Dojos picker. A Window stays bound to one endpoint and can discover, attach, split, control, search, and restore remote Dojos through one OpenSSH child. New remote panes briefly show a client-local Opening remote pane… placeholder while bounded protocol round trips complete.

OpenSSH may use the controlling terminal for passwords, key passphrases, PINs, or hardware tokens. Without a terminal it uses an ssh-agent key first, then your own SSH_ASKPASS, and only then Splinterm’s own prompt in the connection status Window. Unknown or changed host keys fail closed. Splinterm does not run ssh-keyscan, accept unknown keys, or store credentials.

Open a remote from the Splinterm Remotes app-menu entry, the Remote Dojos desktop action, splinterm remotes, or the Remote Dojos… row of the local Recent Dojos picker. One Window lists the profiles in remotes.toml, shows the chosen profile’s connection status and any SSH prompt, lists that host’s Dojos (with New terminal), and then becomes the remote terminal. Escape steps back one stage: from the status screen or the Dojo list (which also ends that SSH connection) to the profiles, and from the profiles it closes the Window. splinterm remotes typed in a terminal returns at once and prints nothing; the launcher runs with no inherited stdio and no controlling terminal, so OpenSSH cannot prompt on a terminal. An agent key or your own SSH_ASKPASS is preferred; when neither can answer, Splinterm asks on the status screen.

Open Remote… in the command palette shows the profiles as a pop-up over the current Window and opens the chosen one in exactly one new Window, which connects, lists that host’s Dojos, and becomes the remote terminal. The status screen and its password field never appear inside a local terminal Window.

Every graphical remote launch first shows a status screen (“Connecting to …”) while OpenSSH authenticates and the remote daemon answers. On success the same Window goes on to the remote’s Dojo picker; on failure it shows the categorized cause, a one-line remedy, the newest sanitized OpenSSH lines, and the agent or SSH_ASKPASS setup, with R or Enter to retry and C, Q, or Escape to close (in the launcher, to go back to the profiles). OpenSSH’s error output stays in that Window. Started from a terminal, OpenSSH may still prompt on that terminal, because Splinterm forces SSH_ASKPASS only when stdin is not a terminal. If a direct splinterm --remote PROFILE closes before connecting, splinterm exits with status 1. The client diagnostics log under ~/.local/state/splinterm/logs/ records only the failure category.

When OpenSSH needs a password, passphrase, or PIN and nothing else can answer, the status Window shows OpenSSH’s prompt text and a masked password field: Enter submits, and Escape cancels the attempt. The field never echoes; the screen and accessibility text say only whether it is empty. Yes/no questions take Y or N. Splinterm’s own executable answers OpenSSH as SSH_ASKPASS through a private per-attempt socket and token, accepts prompts only from that attempt’s OpenSSH, wipes answers after use, and never logs them. Pasting into the field is allowed for password managers, and the status Window does not use an input method. Escape, closing the Window, or two unanswered minutes end the attempt by stopping OpenSSH first, so it never sends an empty password. Non-graphical commands such as remote check never show this prompt.

A native remote Window receives ordinary human multiplexer authority after SSH authenticates the remote account. It can request normal controller ownership but cannot use trusted-local forced takeover. It also does not publish local compositor focus or receive remote terminal image bodies.

SSH or relay loss closes the affected local views and releases connection-owned controllers. It sends no kill or close request, so daemon-owned remote Splints continue running.

The human role is not a boundary against software already running as the account. splinterd recognizes the graphical relay by its installed executable and --graphical-stdio mode, and the relay forwards whatever its caller sends, so any process running as the account can start it and receive the same authority without a prompt. Policy and consent keep cooperating tools within what was granted and make their access visible; they do not contain a hostile process, which can already read the account’s files and run its commands.

The machine relay is a different entry point:

Terminal window
ssh -T \
-o StrictHostKeyChecking=yes \
ACCOUNT@HOST \
/usr/bin/splinterm relay --stdio

It copies bounded private-protocol bytes over stdio. The remote daemon authorizes the exact installed splinterm-relay executable under an owner-controlled policy. SSH login, socket access, and Unix account identity do not grant machine operations.

Use a dedicated account or restricted key when relay callers must not inherit the account’s other SSH capabilities. Relay stdout is protocol data only; diagnostics stay on stderr.

For the complete relay identity, profile schema, authentication, reconnect, and policy contract, read repository docs/remote.md.