4 releases

0.1.2 Dec 16, 2022
0.1.1 Dec 16, 2022
0.1.0 Dec 16, 2022
0.0.0 Dec 16, 2022

#14 in #swarm

Download history 2/week @ 2024-02-28 1/week @ 2024-03-20 49/week @ 2024-03-27 3/week @ 2024-04-03

53 downloads per month

MPL-2.0 license

11KB
158 lines

Swarm SSH

Manage remote computers via ssh protocol.

Login

use diagnostic_quick::QResult;
use swarm_ssh::SwarmSSH;

async fn test_password() -> QResult<SwarmSSH> {
    SwarmSSH::login_password("192.168.1.100:22", "root", "password").await
}

Upload

use std::path::PathBuf;
use diagnostic_quick::QResult;
use swarm_ssh::SwarmSSH;

async fn test_password() -> QResult {
    let ssh = SwarmSSH::login_password("192.168.1.100:22", "root", "password").await?;
    let path = PathBuf::from("Cargo.toml");
    ssh.upload_task(&path, "/tmp/Cargo.toml")?.execute().await?;
    Ok(())
}

Download

use diagnostic_quick::QResult;
use swarm_ssh::SwarmSSH;

async fn test_password() -> QResult<SwarmSSH> {
    SwarmSSH::login_password("192.168.1.100:22", "root", "password").await
}

Dependencies

~8.5MB
~150K SLoC