#ssh #ssh-client #bindings #remote #command #executing #libssh2

ssh2

Bindings to libssh2 for interacting with SSH servers and executing remote commands, forwarding local ports, etc

45 releases

Uses old Rust 2015

0.9.4 Jan 21, 2023
0.9.3 Oct 10, 2021
0.9.1 Feb 1, 2021
0.9.0 Nov 22, 2020
0.0.2 Nov 19, 2014

#60 in Network programming

Download history 12820/week @ 2024-01-03 12375/week @ 2024-01-10 18528/week @ 2024-01-17 17988/week @ 2024-01-24 19280/week @ 2024-01-31 18219/week @ 2024-02-07 15492/week @ 2024-02-14 15343/week @ 2024-02-21 16537/week @ 2024-02-28 16699/week @ 2024-03-06 16395/week @ 2024-03-13 18176/week @ 2024-03-20 15244/week @ 2024-03-27 18354/week @ 2024-04-03 16801/week @ 2024-04-10 14450/week @ 2024-04-17

67,977 downloads per month
Used in 99 crates (73 directly)

MIT/Apache

2MB
42K SLoC

C 36K SLoC // 0.1% comments Rust 3.5K SLoC // 0.0% comments M4 1K SLoC // 0.2% comments Perl 675 SLoC // 0.1% comments Shell 485 SLoC // 0.2% comments Automake 444 SLoC // 0.1% comments C++ 118 SLoC // 0.1% comments Emacs Lisp 32 SLoC // 0.3% comments Bitbake 23 SLoC AWK 22 SLoC PowerShell 11 SLoC // 0.3% comments Batch 6 SLoC

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

~5.5MB
~92K SLoC