t-ssh-client
Rust async ssh client
wrapped by thrussh.
Example
```rust
use std::time::Duration;
use tsshclient::Session;
[tokio::main]
async fn main() -> Result<(), Box> {
let mut sess = Session::connect("192.168.65.1:22", Duration::fromsecs(2)).await?;
sess.authwith_password("username", "password").await?;
let output = sess.execute("df -h").await?;
if output.success() {
println!("[√] {}", output.stdout());
} else {
println!("[x] {}", output.stderr());
}
sess.close().await?;
Ok(())
}
```
License
This project is licensed under the [MIT license].