Skip to main content

Module session

Module session 

Source
Expand description

Async SSH session management via russh.

Provides SshSession โ€” a thin wrapper around a russh client handle that supports connecting, executing commands, and graceful disconnect. Authentication order: identity file โ†’ SSH agent โ†’ failure.

Connection and command timeouts are enforced:

  • Connect timeout: 10 seconds
  • Command timeout: 30 seconds

Structsยง

SshSession
An authenticated SSH session ready for command execution.