Skip to main content

Module sessions

Module sessions 

Source
Expand description

The durable sessions on an SSH host (spec §7.6): what the helper’s daemon holds there, which pane (if any) each belongs to, and ending one. Behind Connectors → Remotes’ “Sessions…”.

Structs§

AskIn
Where ssh’s prompts go: the user’s pane block_id (its window), with srv’s auth key for the askpass helper.
HostSession

Constants§

EXIT_COMMAND_NOT_FOUND 🔒
ssh exits 127 when the remote shell cannot find the command: no helper.
LIMIT 🔒
How long listing or ending may take. ssh may first ask the user something (askpass: a password, a passphrase, a new host key), and its dialog waits up to two minutes (connections::ask_user), so this covers that plus the command itself.

Functions§

attribute
Mark each session with the pane on conn that holds it.
end
End session id on conn’s host: its shell and everything it started. false if the host had no such session.
host_for 🔒
list
The sessions on conn’s host, each with its pane. A host without this version’s helper has none.
parse_list
The helper’s list: one id end exited line per session, exited a code or -. Lines that are not that are skipped, never guessed at.