I want to delete the cron jobs performed. I'm using the below mentioned code but getting ssh2 warnings. Any suggestions will be much appreciated.
Code
<?php
$connection = ssh2_connect('host', 22);
ssh2_auth_password($connection, 'username', 'password');
$cron1 = ssh2_exec($connection, 'rm -rf index.php*');
$stream = ssh2_exec($connection, 'df -h*');
stream_set_blocking($stream, true);
$stream_out = ssh2_fetch_stream($stream, SSH2_STREAM_STDIO);
echo stream_get_contents($stream_out);
?>
PHP info()
Problems
Warning: ssh2_exec(): Unable to request a channel from remote host
Warning: stream_set_blocking() expects parameter 1 to be resource
Warning: ssh2_fetch_stream() expects parameter 1 to be resource
Warning: stream_get_contents() expects parameter 1 to be resource