| Crates.io | swarm-ssh |
| lib.rs | swarm-ssh |
| version | 0.1.2 |
| created_at | 2022-12-16 06:08:34.84333+00 |
| updated_at | 2022-12-16 06:46:35.376317+00 |
| description | Transfer files via ssh protocol. |
| homepage | |
| repository | https://github.com/meta-fs/swarm |
| max_upload_size | |
| id | 738522 |
| size | 11,543 |
Manage remote computers via ssh protocol.
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
}
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(())
}
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
}