Skip to main content

Crate toride_ssh_config

Crate toride_ssh_config 

Source
Expand description

SSH config file parsing, editing, and host resolution.

Re-exports§

pub use resolve::ResolvedHost;

Modules§

ast
Lossless parse tree for SSH config files.
cache
Process-wide memoization of SSH config reads and parses, keyed by the file’s (mtime, len) stamp; an unmeasurable mtime bypasses the cache.
resolve
Full SSH config resolution.
sshd
Editing of /etc/ssh/sshd_config for access-control directives.

Structs§

ConfigService
SSH config file operations.

Functions§

expand_identity_path
Expand ~ and resolve a relative IdentityFile value against ssh_dir.
host_matches
Check if a hostname matches any of the given SSH config patterns.
is_in_ssh_dir
Check if a path is inside the ~/.ssh directory.