Skip to content

Releases: Jord-JD/php-ssh-connection

v5.0.0

Choose a tag to compare

@Jord-JD Jord-JD released this 18 Jul 04:14
7b41bc4
  • 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

Choose a tag to compare

@Jord-JD Jord-JD released this 16 Feb 03:33

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.

v3.0.0

Choose a tag to compare

@Jord-JD Jord-JD released this 14 Feb 22:36

Full Changelog: v2.2.0...v3.0.0

v2.2.0

Choose a tag to compare

@Jord-JD Jord-JD released this 27 May 22:59
d6c8326
  • Add ability to specify a timeout
  • Fix custom SSH port not being used correctly

v2.1.0

Choose a tag to compare

@Jord-JD Jord-JD released this 17 Oct 19:29
4be110a
  • Add SSH server fingerprinting.

v2.0.0

Choose a tag to compare

@Jord-JD Jord-JD released this 08 Aug 11:23
  • Rework to use phpseclib native SSH implementation, meaning the PHP SSH2 extensions is no longer required.
  • Modify withKeyPair() authentication method to withPrivateKey().

v1.3.1

Choose a tag to compare

@Jord-JD Jord-JD released this 07 Aug 21:16
  • Fix bug with isConnected() method.

v1.3.0

Choose a tag to compare

@Jord-JD Jord-JD released this 07 Aug 20:33
  • Add isConnected method to retrieve current connected status.

v1.2.0

Choose a tag to compare

@Jord-JD Jord-JD released this 07 Aug 20:28
  • Throw exception on connection error.

v1.1.0

Choose a tag to compare

@Jord-JD Jord-JD released this 06 Aug 11:12
  • Add ability to upload and download files via SCP.