Re-exports§
pub use host_keys::HostKeyMismatch;pub use host_keys::HostKeyStore;pub use host_keys::HostKeyStoreAccessError;pub use host_keys::HostKeyVerificationFailure;pub use host_keys::Verdict;pub use host_keys::VerificationFailureSlot;pub use tunnel::SshTunnel;pub use tunnel::SshTunnelRef;
Modules§
- host_
keys - shell
- Safe argument quoting for remote shell commands.
- tunnel
- SSH local-port forwarding (
ssh -L).
Structs§
- Client
- russh Handler that verifies each server host key against a
HostKeyStore. - Command
Output - Structured result of running a remote command. Callers that need to branch
on the exit code or separate the streams should consume this directly; the
convenience
execute_commandmerges the streams for display. - PtySession
- SshClient
- SshConfig
Enums§
Constants§
- SFTP_
CHUNK_ SIZE - Chunk size used for streaming SFTP transfers. 32 KiB balances throughput against memory overhead for concurrent transfers. Larger sizes hit diminishing returns because SFTP’s window management caps effective pipelining anyway.
Statics§
- PREFERRED_
HOST_ KEY_ ALGOS - Preferred host-key algorithms advertised to the server, ordered from most to
least preferred. RSA variants (including the legacy
ssh-rsa/ SHA-1) are included so that older servers that only offer RSA host keys are still reachable. - PREFERRED_
KEX_ ALGOS - Key-exchange algorithms offered to the server, most-preferred first.
Functions§
- format_
mismatch - Render a mismatch into a user-facing error message.
- format_
verification_ failure