ssh_config 0.1.0

A small package to parse OpenBSD ssh_config config files The motivation for this crate is that libssh2 does not have a ssh_config parser, and there aren't any decent bindings to libssh.
Documentation
  • Coverage
  • 36.36%
    4 out of 11 items documented1 out of 1 items with examples
  • Size
  • Source code size: 42.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.5 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • INdek/ssh_config
    1 0 10
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • afonso360

ssh_config

A small library to parse OpenBSD ssh_config files.

More documentation on the file format can be found in the OpenBSD man pages.

Usage example

use ssh_config::SSHConfig;

let config = SSHConfig::parse_str(r#"
Host test-host
  Port 22
  Username user
"#)?;

let host_settings = config.query("test-host");
assert_eq!(host_settings["Port"], "22");
assert_eq!(host_settings["Username"], "User");

License

This library is licensed under the Mozilla Public License, v. 2.0. The license file can be found in LICENSE.