9 releases

new 0.2.4 May 19, 2024
0.2.2 Oct 30, 2023
0.2.0 May 30, 2023
0.1.3 Jan 31, 2022
0.1.0 Nov 3, 2021

#2 in #libssh

Download history 2612/week @ 2024-01-28 2152/week @ 2024-02-04 1763/week @ 2024-02-11 1561/week @ 2024-02-18 1641/week @ 2024-02-25 1332/week @ 2024-03-03 1235/week @ 2024-03-10 1329/week @ 2024-03-17 1414/week @ 2024-03-24 1597/week @ 2024-03-31 1339/week @ 2024-04-07 1312/week @ 2024-04-14 1210/week @ 2024-04-21 1569/week @ 2024-04-28 2635/week @ 2024-05-05 1807/week @ 2024-05-12

7,328 downloads per month
Used in 5 crates (via libssh-rs)

MIT license

87K SLoC

C 83K SLoC // 0.1% comments Rust 3K SLoC // 0.0% comments Shell 111 SLoC // 0.1% comments C++ 43 SLoC // 0.4% comments JavaScript 20 SLoC // 0.3% comments Python 9 SLoC


Build Status Build Status Build Status

Native bindings to libssh.


The vendored feature causes a static version of libssh to be compiled and linked into your program. If no system libssh is detected at build time, or that system library is too old, then the vendored libssh implementation will be used automatically. Note that the libssh-rs bindings make use of a couple of new interfaces that have not made it into a released version of libssh at the time of writing this note, so all users will be effectively running with vendored enabled until libssh releases version 0.9.7.

The vendored-openssl feature causes a vendored copy of openssl to be compiled and linked into your program.

On macOS and Windows systems, you most likely want to enable both vendored and vendored-openssl.


This crate is licensed under the MIT license, and is: Copyright (c) 2021-Present Wez Furlong.

Note that the vendored directory is a submodule that references libssh; libssh is itself GNU Library (or: Lesser) General Public License (LGPL) which has a viral clause in the case where you modify libssh. The license is explained on the libssh features page; the summary is that simply using an unmodified libssh-rs-sys crate will not trigger that viral clause, and you are thus able to use this crate under the terms of the MIT license.


~38K SLoC