MCPcopy Index your code
hub / github.com/alexcrichton/ssh2-rs

github.com/alexcrichton/ssh2-rs @libssh2-sys-0.3.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release libssh2-sys-0.3.2 ↗ · + Follow
286 symbols 865 edges 19 files 137 documented · 48% updated 8d ago★ 56445 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

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.

Extension points exported contracts — how you extend this code

KeyboardInteractivePrompt (Interface)
Called by libssh2 to respond to some number of challenges as part of keyboard interactive authentication. [1 implementers]
src/session.rs

Core symbols most depended-on inside this repo

inner
called by 41
src/session.rs
lock
called by 39
src/sftp.rs
rc
called by 38
src/session.rs
authed_session
called by 23
tests/all/main.rs
lock
called by 21
src/channel.rs
path2bytes
called by 21
src/util.rs
channel_session
called by 13
src/session.rs
last_error
called by 11
src/session.rs

Shape

Method 177
Function 52
Class 35
Enum 21
Interface 1

Languages

Rust100%

Modules by API surface

src/session.rs61 symbols
src/sftp.rs49 symbols
src/channel.rs37 symbols
src/lib.rs20 symbols
libssh2-sys/lib.rs20 symbols
src/knownhosts.rs19 symbols
tests/all/channel.rs18 symbols
src/error.rs16 symbols
src/agent.rs15 symbols
tests/all/session.rs12 symbols
src/listener.rs4 symbols
tests/all/sftp.rs3 symbols

For agents

$ claude mcp add ssh2-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page