#ssh #ssh-client #remote #bindings #forwarding #command #client-server

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

#68 in Network programming

Download history 19703/week @ 2024-07-20 18769/week @ 2024-07-27 18651/week @ 2024-08-03 19951/week @ 2024-08-10 20448/week @ 2024-08-17 20447/week @ 2024-08-24 20317/week @ 2024-08-31 18386/week @ 2024-09-07 19386/week @ 2024-09-14 19816/week @ 2024-09-21 19958/week @ 2024-09-28 20971/week @ 2024-10-05 19919/week @ 2024-10-12 22370/week @ 2024-10-19 20853/week @ 2024-10-26 22000/week @ 2024-11-02

88,532 downloads per month
Used in 120 crates (88 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

~1.7–2.8MB
~58K SLoC