Pylibssh2 project

  • Sharebar

libssh2 logopython logo

pylibssh2 is a python binding for the libssh2 library.

This binding is developped at Wallix to provide an easy
way to manage SSH2 connection through libssh2 library in python.

This is a C extension module to provide a high level python API. libssh2 API is
fairy well respected and exported into a python API.

Packaging and API is documented with the epydoc format.


  • python 2.6+ (older version before 2.5 aren’t supported and not recommended)
  • libssh2 1.2.1+ (older version after 0.18 can works too)

Linux Debian/Ubuntu::

    sudo aptitude install python2.6 python2.6-dev libssh2-1 libssh2-1-dev


    sudo make -C /usr/ports/lang/python install clean
    sudo make -C /usr/ports/security/libssh2/ install clean


Old parts from are licensied against GNU Lesser GPL (LGPL) and all
new and rewritten parts from are licensied against LGPL License too.


code and test this binding on Linux and FreeBSD. It would be works on all posix platforms but I haven’t tried others.

Bug tracking and support

Bug tracker is available at GitHub.

Mailing list for support and discussions under’s mailman.

Incoming search terms:

  • python libssh2 windows
  • libssh2 python windows
  • pylibssh2 windows
  • python c ssh
  • libssh2 windows
  • freebsd python libssh2
  • install libssh2 python module
  • libssh2 python 2 6
  • libssh python library
  • libssh2 windows python