Skip to main content

Module ssh

Module ssh 

Source
Expand description

SSH engine via russh 0.62.x.

  • client: one-shot connection, password/key/agent auth, exec with timeout and abort
  • known_hosts: TOFU fingerprints under XDG
  • packing: safe sudo/su packing for one-shot automation
  • key_material: private-key permissions + weak-RSA policy (G-SSH-03/07)
  • client_handler / client_connect: host-key TOFU + auth chain (G-SSH-01/04/06)

§Features

The concrete SshClient is feature-gated:

  • ssh-real (default): real client via russh
  • without default features: stub that fails connect with a clear error

Re-exports§

pub use client::ExecutionOutput;
pub use connection::ConnectionConfig;
pub use client::SshClient;ssh-real
pub use packing::append_description;
pub use packing::pack_abort_pkill;
pub use packing::pack_su;
pub use packing::pack_sudo;
pub use packing::escape_shell_single_quotes;
pub use packing::remote_abort_pattern;

Modules§

client
Cliente SSH real via russh 0.62.2.
connection
SSH connection configuration (auth + timeout + TOFU paths).
known_hosts
TOFU persistence of host-key fingerprints under XDG.
packing
Safe packing of sudo/su commands for one-shot multi-host LLM flows.

Structs§

SftpListEntry
Directory entry for sftp ls JSON/text.
SftpStat
Stat payload for sftp stat.

Functions§

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