Skip to main content

Module client

Module client 

Source
Expand description

Cliente SSH real via russh 0.62.2.

One-shot connection: TCP + handshake + auth (password and/or key) + exec with timeout, output truncation, and best-effort remote abort. Host keys: TOFU em known_hosts XDG (ver super::known_hosts).

Structs§

ClientHandlerssh-real
russh handler with TOFU known_hosts (or always-trust if path is absent).
ConnectionConfig
SSH connection configuration.
ExecutionOutput
Output of a remote SSH command execution.
SshClientssh-real
Active SSH client with an authenticated session.
TransferResult
Result of an SCP file transfer operation.

Traits§

SshClientTrait
SSH client trait allowing a real (russh) or mock implementation for tests.
TunnelChannel
Stream bidirecional usado para tunnel SSH (direct-tcpip).

Functions§

truncate_utf8
Truncates a UTF-8 string to at most max_chars codepoints.