#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

46 releases

Uses old Rust 2015

0.9.5 Feb 1, 2025
0.9.4 Jan 21, 2023
0.9.3 Oct 10, 2021
0.9.1 Feb 1, 2021
0.0.2 Nov 19, 2014

#18 in Network programming

Download history 21666/week @ 2024-10-30 20707/week @ 2024-11-06 18923/week @ 2024-11-13 20918/week @ 2024-11-20 17829/week @ 2024-11-27 19482/week @ 2024-12-04 21288/week @ 2024-12-11 15328/week @ 2024-12-18 6760/week @ 2024-12-25 13213/week @ 2025-01-01 20548/week @ 2025-01-08 19571/week @ 2025-01-15 19466/week @ 2025-01-22 19962/week @ 2025-01-29 38046/week @ 2025-02-05 89914/week @ 2025-02-12

170,646 downloads per month
Used in 128 crates (93 directly)

MIT/Apache

2MB
49K SLoC

C 42K SLoC // 0.1% comments Rust 3.5K SLoC // 0.0% comments M4 1.5K SLoC // 0.2% comments Perl 1K SLoC // 0.1% comments Shell 562 SLoC // 0.2% comments Automake 331 SLoC // 0.1% comments Bitbake 165 SLoC // 0.1% comments C++ 117 SLoC // 0.2% comments Emacs Lisp 32 SLoC // 0.3% comments AWK 22 SLoC // 0.1% comments PowerShell 14 SLoC // 0.4% comments

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.6–7MB
~57K SLoC