GitPedia
ParallelSSH

ParallelSSH/ssh2-python

Python bindings for libssh2 C library.

30 Releases
Latest: 8mo ago
1.2.0.post1Latest
pkittenispkittenis·8mo ago·October 12, 2025
GitHub
1.2.0
pkittenispkittenis·8mo ago·October 11, 2025
GitHub

📋 Changes

  • Added constants for session related flags under `ssh2.session`.
  • Added `ssh2.session.Session.flag` function for enabling/disabling session flags like compression support.
  • Added `ssh2.session.userauth_keyboardinteractive_callback` for authentication using Python callback function,
  • `ssh2.sftp_handle.SFTPHandle.closed` is now a public property indicating whether `ssh2.sftp_handle.SFTPHandle.close`
  • Added `ssh2.channel.Channel.signal` function for sending signals over SSH to an open channel - #221
  • Added `ssh2.session.Session.direct_streamlocal_ex` for creating `Channel` objects tunneling a local UNIX socket
  • Added new `libssh2` error codes under `ssh2.error_codes`, equivalent Python exceptions under `ssh2.exceptions`
  • Removed deprecated `libssh2` `ssh2.channel.Channel` functions `receive_window_adjust`, `handle_extended_data`
  • + 3 more
1.2.0rc3Pre-release
pkittenispkittenis·8mo ago·October 4, 2025
GitHub
1.2.0rc2Pre-release
pkittenispkittenis·8mo ago·October 4, 2025
GitHub
1.2.0rc1Pre-release
pkittenispkittenis·8mo ago·October 4, 2025
GitHub
1.1.2.post1
pkittenispkittenis·1y ago·January 23, 2025
GitHub
1.1.2
pkittenispkittenis·1y ago·January 23, 2025
GitHub

📋 Changes

  • Added Windows Python 3.7 and 3.13 wheel builds.
  • Removed manylinux 2010 wheels.
  • Wheel builds now use embedded libssh and zlib.
  • Dockerfiles and scripts updates.
1.1.1
pkittenispkittenis·1y ago·January 12, 2025
GitHub

📋 Changes

  • Support for Python >=3.12.
  • Upgraded embedded and wheel ``libssh2`` to ``1.11.1``.
  • Upgraded wheel OpenSSL to 3.4.0.
  • Removed testing for Python versions <3.8.
  • Calling ``ssh2.session.Session.methods`` without a valid connection would cause a segfault - #203.
  • Added binary wheels for Python versions 3.11, 3.12 and 3.13 on support manylinux wheel builds.
  • Added OSX 12.0, 13.0 and 14.0 wheels, Apple Silicon.
  • Support OSX brew OpenSSL from source builds.
  • + 2 more
1.1.1rc4Pre-release
pkittenispkittenis·1y ago·January 12, 2025
GitHub
1.1.1rc3Pre-release
pkittenispkittenis·1y ago·January 12, 2025
GitHub
1.1.1rc2Pre-release
pkittenispkittenis·1y ago·January 12, 2025
GitHub
1.1.1rc1Pre-release
pkittenispkittenis·1y ago·January 12, 2025
GitHub
1.0.0
pkittenispkittenis·3y ago·July 31, 2022
GitHub

📋 Changes

  • Upgraded embedded and wheel libssh2 to 1.10.0.
  • Upgraded wheel OpenSSL to 1.1.1q.
  • Added testing for Python 3.10.
  • Removed testing for Python 3.7.
  • Added OSX 12.0 wheels.
  • Removed OSX <= 10.0 wheels.
1.0.0rc2Pre-release
pkittenispkittenis·3y ago·July 31, 2022
GitHub
1.0.0rc1Pre-release
pkittenispkittenis·3y ago·July 31, 2022
GitHub
0.27.0
pkittenispkittenis·4y ago·November 21, 2021
GitHub

📋 Changes

  • Python 3.10 support.
  • Objects depending on ``ssh2.Session`` would sometimes cause segfault on interpreter shutdown.
  • Added manylinux-2014 ARM (aarch64) wheel builds - #156 - Thanks @enaydanov
  • Added manylinux-2014 x86_64 wheels for all currently available Python 3 versions.
  • Added Windows 3.10 wheels.
  • Added OSX 11.6, 11.5 and 11.4 wheels.
0.26.0
pkittenispkittenis·5y ago·January 2, 2021
GitHub

📋 Changes

  • Enabled ``ssh2.fileinfo.FileInfo`` and ``ssh2.statinfo.StatInfo`` attributes on Windows builds - #131.
0.25.0
pkittenispkittenis·5y ago·December 6, 2020
GitHub

📋 Changes

  • Added new in libssh2 `1.9.0` errors as exceptions.
  • Added ``Session.methods``, ``Session.method_pref`` and ``Session.supported_algs`` functions.
  • Added supported method types as ``ssh2.session.LIBSSH2_METHOD_*``.
0.24.0
pkittenispkittenis·5y ago·December 6, 2020
GitHub

📋 Changes

  • ``Session.forward_listen_ex`` now returns (``Listener``, ``bound_port``) tuple.
  • Added new in libssh2 1.9.0 host key type and host key hash attributes to ``ssh2.session``.
  • Added new in libssh2 1.9.0 known host key attributes to ``ssh2.knownhost``.
0.23.0
pkittenispkittenis·5y ago·October 24, 2020
GitHub

📋 Changes

  • Added ``ssh2.sftp.LIBSSH2_SFTP_ATTR_*`` constants for checking and setting SFTP attributes.
  • ``Session.userauth_keyboardinteractive`` would cause segmentation fault.
0.22.0
pkittenispkittenis·5y ago·October 3, 2020
GitHub
0.21.0
pkittenispkittenis·5y ago·October 3, 2020
GitHub
Release 0.20.00.20.0
pkittenispkittenis·5y ago·September 22, 2020
GitHub

📋 Changes

  • Added helper function ``ssh2.utils.find_eol`` for finding end of line characters in buffer.
Release 0.19.00.19.0
pkittenispkittenis·5y ago·August 13, 2020
GitHub

📋 Changes

  • Updated embedded libssh2 version to ``1.9.0``.
  • Rebuilt sources with Cython ``0.29.21``.
  • Added support for Python 3.8 and 3.9.
  • Session.userauth_publickey_frommemory would not work without an empty public key provided - #86
  • Added Python 3.8 binary wheels for Linux, OSX and Windows.
  • Added Python 3.9 binary wheels for Linux.
  • Added OSX 10.14 and 10.15 wheels.
  • Removed OSX < 10.14 wheels.
  • + 3 more
Release 0.18.0-10.18.0.post1
pkittenispkittenis·7y ago·June 23, 2019
GitHub

📋 Changes

  • Session object de-allocation no longer calls session disconnect.
  • Channel object de-allocation no longer calls channel close.
  • Rebuilt sources with Cython ``0.29.6``.
  • Updated Linux and Windows binary wheels to OpenSSL 1.1.
  • Updated embedded ``libssh2`` to latest master.
  • Added ``Ed25519`` publickey support via ``libssh2`` and OpenSSL upgrades.
  • Source distribution builds would not include embedded libssh2 module in package - #51
  • Removed OSX 10.10 and 10.11 binary wheel builds - deprecated by Travis-CI.
0.17.0-30.17.0.post3
pkittenispkittenis·7y ago·December 14, 2018
GitHub

📋 Changes

  • Updated embedded OpenSSL version for Windows wheel builds.
0.17.0.post2
pkittenispkittenis·7y ago·December 14, 2018
GitHub
0.17.0-10.17.0.post1
pkittenispkittenis·7y ago·December 13, 2018
GitHub

📋 Changes

  • Source distribution builds would not include embedded libssh2 module in package - #51
  • Removed OSX 10.10 binary wheel builds - deprecated by Travis-CI.
Release 0.17.00.17.0
pkittenispkittenis·7y ago·November 3, 2018
GitHub

📋 Changes

  • ``SFTPHandle.write`` function changed to return tuple of ``return_code, bytes_written`` for non-blocking applications to be able to handle partial writes within an SFTP write resulting from a blocked socket.
  • ``Channel.write*`` functions changed to return tuple of ``return_code, bytes_written`` as above.
Release 0.16.00.16.0
pkittenispkittenis·7y ago·October 23, 2018
GitHub

📋 Changes

  • Added ``Session.sock`` public attribute for getting socket used by ``Session``.
  • Source distribution default ``libssh2`` build target updated to upstream ``libssh2`` master branch.
  • Added bundled libssh2 source code for current master branch to repository and source distribution.
  • Added automatic build of bundled libssh2 code for source builds and ``SYSTEM_LIBSSH2`` environment variable to control building and linking against system provided libssh2. This will require additional steps for Windows platforms and older libssh2 versions - see documentation.
  • Updated binary wheels for all platforms to latest libssh2.
  • Added keep alive API implementation - #47.