Skip to main content

libssh C library bindings for Python.

Project description

Bindings for libssh C library.

License Latest Version Latest documentation


Binary wheels are provided for Linux (manylinux 2010), OSX (10.14 and 10.15 for brew Python), and Windows 64-bit (Python 3.6/3.7/3.8).

Wheels have no dependencies.

For building from source, see documentation.

pip install ssh-python

Pip may need to be updated to be able to install binary wheels.

pip install -U pip
pip install ssh-python

Quick Start

See command execution script for complete example.


The library uses Cython based native code extensions as wrappers to libssh.

  • Thread safe - GIL released as much as possible

    • libssh threading limitations apply - anything not supported in C is not supported in Python

  • Very low overhead thin wrapper

  • Object oriented

    • Memory freed automatically and safely as objects are garbage collected by Python

  • Uses Python semantics where applicable

    • channel/file handle context manager support

    • channel/file handle iterator support

  • Raises low level C errors as Python exceptions

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ssh-python-1.0.0.tar.gz (1.5 MB view hashes)

Uploaded source

Built Distributions

ssh_python-1.0.0-cp311-cp311-win_amd64.whl (2.4 MB view hashes)

Uploaded cp311

ssh_python-1.0.0-cp310-cp310-win_amd64.whl (2.4 MB view hashes)

Uploaded cp310

ssh_python-1.0.0-cp39-cp39-win_amd64.whl (2.4 MB view hashes)

Uploaded cp39

ssh_python-1.0.0-cp38-cp38-win_amd64.whl (2.4 MB view hashes)

Uploaded cp38

ssh_python-1.0.0-cp37-cp37m-win_amd64.whl (2.4 MB view hashes)

Uploaded cp37

ssh_python-1.0.0-cp36-cp36m-win_amd64.whl (2.5 MB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page