Skip to main content

Super fast SSH2 protocol library. ssh2-python provides Python bindings for libssh2.

License Latest Version https://circleci.com/gh/ParallelSSH/ssh2-python/tree/master.svg?style=svg https://ci.appveyor.com/api/projects/status/github/parallelssh/ssh2-python?svg=true&branch=master https://img.shields.io/pypi/wheel/ssh2-python.svg https://img.shields.io/pypi/pyversions/ssh2-python.svg Latest documentation

Installation

Binary wheel packages are provided for Linux, OSX and Windows, all Python versions. Wheel packages have no dependencies.

pip may need to be updated to be able to install binary wheel packages - pip install -U pip.

pip install ssh2-python

For from source installation instructions, including building against system provided libssh2, see documentation.

Who Should Use This

Most developers will want to use the high level clients in parallel-ssh based on this library.

This library provides bindings to the low-level libssh2 C-API. It is not high level, nor easy to use. A lot of code would need to be written to use this library that is already provided by parallel-ssh.

Use parallel-ssh unless really sure using a C-API is what is wanted.

API Feature Set

At this time all of the libssh2 API has been implemented up to the libssh2 version in the repository. Please report any missing implementation.

Complete example scripts for various operations can be found in the examples directory.

In addition, as ssh2-python is a thin wrapper of libssh2 with Python semantics, its code examples can be ported straight over to Python with only minimal changes.

Examples

See examples directory for complete examples.

Again, most developers will want to use parallel-ssh rather than this library directly.

Comparison with other Python SSH libraries

Performance of above example, compared with Paramiko.

time python examples/example_echo.py
time python examples/paramiko_comparison.py
Output:

ssh2-python:

real       0m0.141s
user       0m0.037s
sys        0m0.008s

paramiko:

real       0m0.592s
user       0m0.351s
sys        0m0.021s

Metadata

Release files for ssh2-python312 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ssh2-python312 0.1.1
File Actions
ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-32 Details for ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
ssh2_python312-0.1.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for ssh2_python312-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
ssh2_python312-0.1.1-cp312-cp312-macosx_10_9_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.9+ x86-64 Details for ssh2_python312-0.1.1-cp312-cp312-macosx_10_9_x86_64.whl
ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-32 Details for ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
ssh2_python312-0.1.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for ssh2_python312-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
ssh2_python312-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for ssh2_python312-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl
ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-32 Details for ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
ssh2_python312-0.1.1-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for ssh2_python312-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
ssh2_python312-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for ssh2_python312-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl

Total release size: 45.0 MB

Release files / ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.9 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e597616ee450e3ffbd357b2001cae459a45a8a9ae9b5282df7247ca710b57971
BLAKE2b-256 checksum
How to use checksums
46b3f59afc708467b044d471f43a639b5687a5fae44b1b5c36be0595ad7192e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL ssh2_python312-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Size 4.5 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-32
SHA-256 checksum
How to use checksums
721d7f7f452fa34296e3dea2484fe795fe4a06ac71b17325eed5148bf8594108
BLAKE2b-256 checksum
How to use checksums
b8a87606ee85f56406f202e3981cc10305d3dc531c55d73d863a0f5ecda4c582
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL ssh2_python312-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Size 3.0 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b2d4c3e9154f456f8befaf81b0e7647e06a5ee613ff6b227340cecb029c11c77
BLAKE2b-256 checksum
How to use checksums
83aabd9f1e3901a53d3a83049506b0dfb306b186bb113d40783b0ff5c8644057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp312-cp312-macosx_10_9_x86_64.whl

Download URL ssh2_python312-0.1.1-cp312-cp312-macosx_10_9_x86_64.whl
Size 2.8 MB
Tags CPython 3.12 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
3763989a0eeb1234399f13bffd527e1c85c4bc9a6931311d7ff61586f3027292
BLAKE2b-256 checksum
How to use checksums
0064dc37574e8cd076abb3e7a430ea24fac6e485928427f6e9edd70bb5971b2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.7 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
15e61742937b299ac40ae567759d9916c05aaa4a2d43b6073abdc6254e87ffd3
BLAKE2b-256 checksum
How to use checksums
66c0984c5cce3351e6166dc818e8f71da87f3aef4585323345454f09f72bd447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL ssh2_python312-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Size 4.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-32
SHA-256 checksum
How to use checksums
efdc125b255cb39caa508ed8895964ee63c207e7871ccfa478384216d36f6288
BLAKE2b-256 checksum
How to use checksums
6156bfb0f83854cb074c6749c1769dd383f87a97d04fc6c024e09faa62203d57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL ssh2_python312-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Size 3.0 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9e38f1a9475cb92a8742540148250d029d7e146a21db03750b5b8d2c1b141c6a
BLAKE2b-256 checksum
How to use checksums
e4dbc1fcc0825b8c724ebadfe7688472a55184293b2025b273127671232d4b3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl

Download URL ssh2_python312-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Size 2.8 MB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
122653d0bfe811fb45d6c13862db349032ec9b8c5d8d1944536affc53fe05e9a
BLAKE2b-256 checksum
How to use checksums
0b75e1fa193670ab544afca21f3d9ddd7c09d2f222d0f504208558e7a05c0368
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7a9c764c83db59a360c7427ac36088fc7222e61b340de208ed5a9a5f60133069
BLAKE2b-256 checksum
How to use checksums
8f96bc69071ffe91ca1b76a74cdb01ef846a0ba05353417aefed2b53dc201402
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL ssh2_python312-0.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Size 4.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-32
SHA-256 checksum
How to use checksums
9fd7dfa133c862af74192c43576a4c145325282b3a919a671cf978a154cb305b
BLAKE2b-256 checksum
How to use checksums
88987288ec464b02e89aa1cd209d258936aa8c36a7c1dcf9f607fbe1cb497dbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL ssh2_python312-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Size 3.0 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ed5ae8920e4a529cf6f4883b7da4637a292128fb0b700e05b89d66796b4080d9
BLAKE2b-256 checksum
How to use checksums
d90b17176914cdb6d78bf1187b9b748726d5030e46e896a2fdd4b7d3ad56c38e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ssh2_python312-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl

Download URL ssh2_python312-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Size 2.8 MB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
694487a93a551ff60a847c403fe126ccee8553b0f1d68c2e581cf47e16fdcb9d
BLAKE2b-256 checksum
How to use checksums
da47234ce4fb24933e69811685add007c0a286355657a764e76d3338f0a9ddcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for ssh2-python312 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

12 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page