ssh2

Bindings for the libssh2 library


Provides bindings to the functions of libssh2 which implements the SSH2 protocol.
libssh2 is available from http://libssh2.org/

License: PHP License

Latest releases

Version Release Download
1.5.0 2026-04-04 ssh2-1.5.0.tgz
1.4.1 2024-02-10 ssh2-1.4.1.tgz
1.4 2023-04-16 ssh2-1.4.tgz
1.3.1 2021-03-02 ssh2-1.3.1.tgz
1.3 2021-03-01 ssh2-1.3.tgz
Show all releases

Changelog

Version Message
1.5.0 - PIE (PHP Installer for Extensions) compatibility
- Fix crash on ECDSA pubkey auth due to libssh2 allocator mismatch [PR #92] (Fixes #91, #84)
- Fix fragment part of path lost for files with # in name [PR #93] (Fixes #90)
- Fix segfault when disconnecting with open SFTP streams [PR #94] (Fixes #81)
- Add ssh2_keepalive_config() and ssh2_keepalive_send() [PR #95] (Fixes #79)
- Add ssh2_set_timeout() [PR #70] (Jille Timmermans)
- Add ssh2_send_signal() [PR #89] (herrecito)
- Fix ssh2_poll() rejecting valid resource inputs [PR #96] (Fixes #82)
- Fix Homebrew libssh2 autodetection on macOS Apple Silicon [Fixes #87]
- Initialize php_stream_wrapper_ops explicitly [PR #68] (Gerdriaan Mulder)
- Bump minimum PHP version to 8.0
- Drop PHP 8.0 from CI, add PHP 8.5
- Fix Windows CI (setup-php-sdk TLS issue)
1.4.1 - End zend_function_entry ssh2_functions list with PHP_FE_END [PR #67] (Gerdriaan Mulder)
- Remove implicit switch-case fallthrough [PR #66] (Gerdriaan Mulder)
- Windows build setup with GitHub Actions [PR #75] (Derick Rethans)
1.4 - Add ssh2_shell_resize function [PR #55] (jentian)
- Add ssh2_auth_pubkey to allow public and private keys as strings [PR #56] (Andreas Treichel)
1.3.1 - 1.3.1 release only fixed the PHP >= 8.0 requirement in the package.xml. No code changes.

Changes in 1.3:

- Add ssh2_send_eof() [PR #45] (Calvin Buckley)
- PHP stream cast function for SSH channel objects for stream_select() support. [PR #38] (Robert Wolf)
- Fix for PHP 7.4 and 8 [PR #44] (Andy Postnikov and Remi Collet)
- Fixed debug and disconnected callback [PR #37] (Piotr Rogowski)
- Various stability and memory issue fixes [PR #39, #41] (Robert Wolf)
- Segfault fix for bug #79757 [PR #43] (Konrad K)
- Various stability and bug fixes #79631, #63480, #80294, #75523, #80729 [PR #46, #47, #48, #49, #50 and #51] (Christoph M. Becker)
1.3 - Add ssh2_send_eof() [PR #45] (Calvin Buckley)
- PHP stream cast function for SSH channel objects for stream_select() support. [PR #38] (Robert Wolf)
- Fix for PHP 7.4 and 8 [PR #44] (Andy Postnikov and Remi Collet)
- Fixed debug and disconnected callback [PR #37] (Piotr Rogowski)
- Various stability and memory issue fixes [PR #39, #41] (Robert Wolf)
- Segfault fix for bug #79757 [PR #43] (Konrad K)
- Various stability and bug fixes #79631, #63480, #80294, #75523, #80729 [PR #46, #47, #48, #49, #50 and #51] (Christoph M. Becker)
Show complete changelog