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.
Requirements
- 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
FreeBSD::
sudo make -C /usr/ports/lang/python install clean
sudo make -C /usr/ports/security/libssh2/ install clean
License
Old parts from Keyphrene.org are licensied against GNU Lesser GPL (LGPL) and all
new and rewritten parts from Wallix.com are licensied against LGPL License too.
Portability
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 Wallix.org’s mailman.
Incoming search terms:
- libssh2 python 2 6
- /usr/ports/security/libssh2 debian
- python libssh2 api
- python libssh2 bindings
- python libssh2 channel execute
- python libssh2 channel execute status out
- python libssh2 channel write
- python libssh2 execute sudo
- python libssh2 install
- python libssh2 source

Why was the Channel.poll() method removed from pylibssh2 1.0.1? I’ve patched mine back in from the 1.0.0 sources, but I was wondering.