pecl-networking-ssh2
pecl-networking-ssh2 copied to clipboard
Bindings for the libssh2 library
``` % pecl install ssh2 pecl/ssh2 requires PHP (version >= 4.0.0, version
I'm using ssh2 extension. Unfortunately sometimes ssh2_sftp function waits forever because there is no way to specify timeout. Please consider adding parameter timeout to ssh2_connect function (as in ftp_connect) or...
`ssh2_exec` works fine with short commands but fails with `PHP Warning: ssh2_exec(): Unable to request command execution on remote host` when trying to send long commands (41269 chars in my...
```php #... dump(php_uname('a')); dump(phpversion('ssh2')); dump(phpversion('xdebug')); dump(php_uname('a')); dump(phpversion()); dump(phpversion('ssh2')); dump(phpversion('xdebug')); $ssh_conn = ssh2_connect($my_hostname, 22222, ['hostkey' => 'ssh-rsa']); dump($ssh_conn); $auth_result = ssh2_auth_pubkey_file($ssh_conn, $my_username, '~/.ssh/id_rsa.pub', '~/.ssh/id_rsa'); dump($auth_result); ``` ------ ```bash "Darwin myhostname.local 21.2.0...
I'm using https://pecl.php.net/package/ssh2 module in PHP. The password parameter is not working as intended. This Works: but if I put that code into a function and pass the password into...
Under PHP 8.0.13 all ok Under PHP 8.1.0 I recived: Warning: PHP Startup: ssh2: Unable to initialize module Module compiled with module API=20200930 PHP compiled with module API=20210902
Add ssh2_auth_pubkey(resource $session, string $username, string $pubkey, string $privkey, string $passphrase = ?): resource where $pubkey and $privkey contains the keys as strings and not filenames.
See https://github.com/php/pecl-system-dio/pull/13 regarding the general discussion.
After upgrading to `Debian Bookworm` and `PHP 8.2` it's no longer possible to connect to remote server via PHP and SSH2 The public/private key works because it's possible to connect...
issue #62