Registry / networking / async-ssh2-lite

async-ssh2-lite

JSON →
library0.5.0rscratesunverified

Asynchronous SSH2 client and server library built on top of ssh2.

# Cargo.toml [dependencies] async-ssh2-lite = "0.5.0"
INSTALL
IMPORT
SIG · ASYNC-SSH2-LITE
A
async-ssh2-lite
networkingrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AsyncClient
use async_ssh2_lite::client::AsyncClient;

Connect to an SSH server and authenticate with password.

use async_ssh2_lite::client::AsyncClient; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let mut client = AsyncClient::new("localhost:22").await?; client.authenticate_password("user", "pass").await?; Ok(()) }
Debug
Known issues
gotchaRequires an async runtime (tokio or async-std) to be active.
fix
Add tokio or async-std as a dependency and use #[tokio::main] or similar.
affects: >=0.1.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
58 hits · last 30 days
node
52
Resources
async-ssh2-lite — cargo add async-ssh2-lite · libregistry