#ssh

deprecated nbssh

SSH command generator

13 releases (5 stable)

3.0.2 Mar 16, 2024
3.0.0 Jul 5, 2020
2.0.1 Jul 4, 2020
1.0.0 Apr 24, 2019
0.8.0 Mar 12, 2019

#189 in #ssh

Apache-2.0

10KB
202 lines

nbssh

This tool is no longer under active development. If you are interested in taking over or repurposing the name on crates.io, feel free to contact me: nbishop@nbishop.net

crates.io Documentation

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();

lib.rs:

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();

Dependencies

~0.4–1MB
~23K SLoC