libssh2: FFI bindings to libssh2 SSH2 client library (

[ bsd3, library, network ] [ Propose Tags ]

This package provides FFI bindings for SSH2 client library named libssh2.

As of version 0.2 all blocking is handled in Haskell code rather than in C code. This means that all calls are now interruptable using Haskell asynchronous exceptions; for instance, it is now possible to use System.Timeout in combination with "libssh2".

Note on usage on Windows: On Windows you MUST compile your executable with -threaded or libssh2 will NOT work. We have tested libssh2 on Windows using, with and compiled from source (be sure to pass the shared option to the configure script for openssl to enable the shared libraries).

Versions [RSS] [faq] 0.1, 0.2,,,,,,,,
Dependencies base (==4.*), bytestring (>=0.9), filepath, libssh2, network (>=2.3 && <3.2), syb (>=0.3.3), time (>=1.2), unix, utf8-string [details]
License BSD-3-Clause
Author IlyaPortnov
Category Network
Home page
Source repo head: git clone
Uploaded by IlyaPortnov at 2021-05-14T15:14:11Z
Distributions NixOS:
Executables hs-ssh-client
Downloads 6721 total (60 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-06-15 [all 4 reports]


[Index] [Quick Jump]

Manual Flags

Automatic Flags

add hack that allows to run threaded program when libssh2 is built against gcrypt


Build the example client


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees