Repository navigation
Releases: Jord-JD/php-ssh-connection
Releases · Jord-JD/php-ssh-connection
Release list
v5.0.0
- Migrate from phpseclib 2.x to actively maintained phpseclib 3.x without raising PHP 7.2.
- Add pre-auth host-key pinning with standard OpenSSH SHA-256 and MD5 fingerprints plus raw host-key access.
- Support passphrase-protected private key files and strings.
- Use SFTP for uploads and downloads, and reject remote symlinks during recursive downloads.
- Expose command exit status, success, and timeout state; apply timeouts to connection and authentication.
- Validate connection, command, key, and transfer inputs explicitly.
- Add passing real-OpenSSH integration tests on PHP 7.2 and PHP 8.5 and document the v5 migration.
v4.0.0
Breaking Changes
- Minimum supported PHP version is now PHP 7.2.
CI and Maintenance
- Removed Travis CI and Coveralls configuration/artifacts.
- Added GitHub Actions CI workflow (
tests.yml) running on PHP 7.2, 7.4, 8.0, and 8.4. - Added built-in SSH integration environment setup in CI for key + password auth tests.
Features and Fixes
- Merged PR #13: added
withPrivateKeyString()support for in-memory private keys. - Added
runCommands()to support multi-command execution in a single shell context (resolves #9). - Added secure fingerprint algorithms: SHA-256 and SHA-512 (resolves #7).
- Added recursive directory support in
download()(resolves #11). - Refactored tests to be environment-driven and CI-agnostic.
Compatibility
- Package supports PHP 7.x (7.2+) and PHP 8.x.