Registry / networking / russh
library0.61.2rscratesunverified

A client and server SSH library for Rust.

# Cargo.toml [dependencies] russh = "0.61.2"
INSTALL
IMPORT
SIG · RUSSH
R
russh
networkingrustv0.61.2
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.

connect
use russh::client::connect;

Connects to an SSH server asynchronously.

use russh::client::connect; #[tokio::main] async fn main() { let session = connect("localhost:22", Default::default()).await.unwrap(); println!("Connected!"); }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) to be used.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=0.60.0
Upgrade
Version history
0.61.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
35
Resources
russh — cargo add russh · libregistry