{"id":50355496,"url":"https://github.com/pbar1/ssh2-async-rs","last_synced_at":"2026-05-29T22:30:20.596Z","repository":{"id":356358412,"uuid":"1128758795","full_name":"pbar1/ssh2-async-rs","owner":"pbar1","description":"Performant and runtime-agnostic async wrapper for ssh2-rs","archived":false,"fork":false,"pushed_at":"2026-05-07T17:19:41.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-07T19:21:35.932Z","etag":null,"topics":["async","libssh2","rust","ssh"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pbar1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-06T05:37:39.000Z","updated_at":"2026-05-07T17:15:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pbar1/ssh2-async-rs","commit_stats":null,"previous_names":["pbar1/ssh2-async-rs"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pbar1/ssh2-async-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbar1%2Fssh2-async-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbar1%2Fssh2-async-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbar1%2Fssh2-async-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbar1%2Fssh2-async-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pbar1","download_url":"https://codeload.github.com/pbar1/ssh2-async-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbar1%2Fssh2-async-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33673627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","libssh2","rust","ssh"],"created_at":"2026-05-29T22:30:19.737Z","updated_at":"2026-05-29T22:30:20.590Z","avatar_url":"https://github.com/pbar1.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh2-async\n\nRuntime-agnostic async wrappers for [`ssh2`][ssh2].\n\nIncludes pluggable runtime support through the `RuntimeContext` trait to\nintelligently support async without resorting to busy-waiting. [Tokio][tokio]\nsupport is implemented already and enabled by default.\n\nAlso implements `futures::io::{AsyncRead, AsyncWrite}` for things that\nimplement `std::io::{Read, Write}` in `ssh2`, such as channels and files.\n\n## Example\n\n```rust\nuse futures::AsyncReadExt;\nuse ssh2_async::{Session, TokioContext};\nuse tokio::net::TcpStream;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), ssh2::Error\u003e {\n    let tcp = TcpStream::connect(\"127.0.0.1:22\")\n        .await\n        .unwrap()\n        .into_std()\n        .unwrap();\n\n    let mut session = Session::\u003cTokioContext\u003e::from_stream(tcp)?;\n    session.handshake().await?;\n    session.userauth_password(\"user\", \"password\").await?;\n\n    let mut channel = session.channel_session().await?;\n    channel.exec(\"uname -a\").await?;\n\n    let mut output = String::new();\n    channel.read_to_string(\u0026mut output).await.unwrap();\n    channel.wait_close().await?;\n\n    println!(\"{output}\");\n    Ok(())\n}\n```\n\n[ssh2]: https://github.com/alexcrichton/ssh2-rs\n[tokio]: https://tokio.rs/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbar1%2Fssh2-async-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbar1%2Fssh2-async-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbar1%2Fssh2-async-rs/lists"}