[−][src]Crate nbssh
SSH command generator. Example usage:
use nbssh::{Address, SshParams}; use std::process::Command; let params = SshParams { address: Address::from_host("myHost"), ..Default::default() }; let args = params.command(&["echo", "hello"]); Command::new(&args[0]).args(&args[1..]).status().unwrap();
Structs
Address | Host and port number. Can be serialized and deserialized with serde using the "host[:port]" format. |
SshParams | Inputs for an SSH command, excluding the remote command itself. |
Enums
AddressError | Address parse errors. |
Constants
DEFAULT_SSH_PORT | Default SSH port number 22. |