Crate nbssh

source ·
Expand description

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§

  • Host and port number. Can be serialized and deserialized with serde using the “host[:port]” format.
  • Inputs for an SSH command, excluding the remote command itself.

Enums§

Constants§