67 releases

Uses old Rust 2015

0.3.1 Feb 1, 2025
0.3.0 Jan 21, 2023
0.2.23 Oct 10, 2021
0.2.21 Feb 1, 2021
0.0.1 Nov 11, 2014

#172 in Network programming

Download history 143699/week @ 2024-10-28 136897/week @ 2024-11-04 160679/week @ 2024-11-11 160692/week @ 2024-11-18 129043/week @ 2024-11-25 142422/week @ 2024-12-02 146439/week @ 2024-12-09 135009/week @ 2024-12-16 77292/week @ 2024-12-23 87837/week @ 2024-12-30 143694/week @ 2025-01-06 170621/week @ 2025-01-13 138575/week @ 2025-01-20 145175/week @ 2025-01-27 192630/week @ 2025-02-03 267487/week @ 2025-02-10

753,824 downloads per month
Used in 160 crates (4 directly)

MIT/Apache

2MB
46K SLoC

C 42K SLoC // 0.1% comments M4 1.5K SLoC // 0.2% comments Perl 1K SLoC // 0.1% comments Rust 1K SLoC // 0.0% comments Shell 563 SLoC // 0.2% comments Automake 332 SLoC // 0.1% comments Bitbake 166 SLoC // 0.1% comments C++ 118 SLoC // 0.2% comments Emacs Lisp 33 SLoC // 0.3% comments AWK 23 SLoC // 0.1% comments PowerShell 15 SLoC // 0.4% comments

Contains (obscure autoconf code, 14KB) libssh2/configure.ac

ssh2-rs

Build Status Build Status Build Status

Documentation

Rust bindings to libssh2, an ssh client library.

Usage

# Cargo.toml
[dependencies]
ssh2 = "0.9"

Building on OSX 10.10+

This library depends on OpenSSL. To get OpenSSL working follow the openssl crate's instructions.

Starting with version 0.4 of ssh2, you can enable the vendored-openssl feature to have libssh2 built against a statically built version of openssl as described here

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.1–2MB
~45K SLoC