Hey there here i am trying to run a php code to connect with SSH and i am using phpseclib but i am facing a very frustrating situation here.
$connection_string = ssh2_connect('xyz', 22);
Hey there here i am trying to run a php code to connect with SSH and i am using phpseclib but i am facing a very frustrating situation here.
$connection_string = ssh2_connect('xyz', 22);
Check the documentation and try commands below:
1. sudo apt install php-pear
2. sudo pecl channel-update pecl.php.net
3. sudo sudo apt install phpуourversion-dev
4. sudo pecl install ssh2
Hope help you.