--- id: ssh-python version: "1.2.0.post1" license: LGPL-2.1-only license_treatment: copyleft maintenance: aging --- # ssh-python — libssh C library bindings for Python. License: copyleft · Maintenance: aging · Downloads: 213.4K/mo ## What it is and what it does ssh-python provides direct Python bindings to libssh, a C library for SSH client operations. It exposes low-level SSH functionality with minimal overhead, releasing the GIL during C operations to enable threading. The library uses Python idioms where applicable—context managers for channel/file handle cleanup, iterators for reading data—and automatically manages memory as objects are garbage collected. The package is intended for developers who need direct, efficient access to SSH operations without the abstraction layers of higher-level libraries. It supports thread-safe concurrent operations within libssh's threading model, making it suitable for applications that execute multiple SSH commands or transfers in parallel. Binary wheels eliminate compilation requirements for common platforms and Python versions. Use it for: - Execute remote commands on multiple servers concurrently with minimal overhead in parallel SSH tools. - Transfer files over SSH with direct control over connection and channel management. - Build low-latency SSH client applications where GIL contention or abstraction overhead matters. - Integrate SSH capabilities into systems that require thread-safe, non-blocking remote operations. - Access libssh features not exposed by higher-level Python SSH libraries. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python bindings to the libssh C library for SSH client operations, with thread-safe, low-overhead access to remote command execution and file transfer over SSH. Yes, if you need direct, efficient SSH client bindings and are comfortable with a lower-level API. The library is production-stable, has no runtime dependencies, and provides good platform coverage via binary wheels. However, the aging maintenance status (306 days since last release) and small community (48 GitHub stars) mean you should verify active support for your use case before committing to it in new projects. Consider higher-level alternatives like paramiko if you prioritize ease of use and active development. ## Install pip install ssh-python uv add ssh-python poetry add ssh-python ## Installing ssh-python Before you install: Binary wheels available for Linux (manylinux 2014, x86_64 and aarch64), macOS (versions 12, 13, 14), and Windows 64-bit. Wheels have no dependencies. Last release was 306 days ago; repository is not archived but marked as aging. License in practice: Licensed under LGPL-2.1-only (copyleft). Any derivative work or distribution must comply with copyleft obligations, including providing source code and allowing modifications under the same license terms. Quickstart: pip install ssh-python import ssh # See command execution example in repository for usage patterns Requires Python 3.8 or later. Binary wheels are pre-built; source builds require libssh development headers and a C compiler. Verify before relying: - Whether the package is actively maintained or in maintenance-only mode (last commit 2025-10-21, but status marked 'aging'). - Specific libssh version targeted by the bindings and any known compatibility constraints. - Performance characteristics and overhead compared to other SSH libraries (e.g., paramiko, fabric). ## Package facts - License: LGPL-2.1-only (copyleft) - Python support: unspecified - Install friction: medium - Maintenance: aging - Downloads: 213.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags ssh client library python, libssh python bindings, remote command execution ssh, ssh file transfer python, thread-safe ssh client, low-level ssh bindings, ssh-client, c-bindings, low-level [View on SkillFed](https://skillfed.io/packages/ssh-python) · [View on PyPI](https://pypi.org/project/ssh-python/)