Skip to main content

Module ssh_agent

Module ssh_agent 

Source
Expand description

SSH Agent client implementation

Platform: Unix/Linux/macOS (uses Unix domain sockets)

Re-exports§

pub use actions::SshAgentClientProtocol;

Modules§

actions
SSH Agent client protocol actions

Structs§

AgentResponseReader
Keeps an absolute partial-frame deadline across cancellation of next().
AgentWriter
A framed writer that permanently loses its transport after an incomplete write. Taking the transport out before awaiting also covers caller cancellation: its drop closes the owned Unix write half, and subsequent commands cannot append a new frame into an unfinished one.
SshAgentClient
SSH Agent client that connects to an SSH agent

Constants§

MAX_RESPONSE_BYTES
Bound server-controlled SSH agent frame lengths before allocating their bodies.

Functions§

response_reader
Decode complete SSH agent packets, stripping their four-byte big-endian length. Keeping framing in the reader preserves partial packets across command-channel select arms and separates multiple responses received in one socket read.
response_reader_with_timeout