ssh2 0.2.15

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

ssh2-rs

Build Status Build Status

Documentation

Rust bindings to libssh2

# Cargo.toml
[dependencies]
ssh2 = "0.2"

Building on OSX 10.10+

Currently libssh2 requires linking against OpenSSL, and to compile libssh2 it also needs to find the OpenSSL headers. On OSX 10.10+ the OpenSSL headers have been removed, but if you're using Homebrew you can install them via:

brew install openssl

To get this library to pick them up the standard rust-openssl instructions can be used to transitively inform libssh2-sys about where the header files are:

export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib