Warning: unpack(): Type C: not enough input, need 1, have 0 in /volume1/web/phpseclib/Net/SSH2.php on line 1411 Warning: extract() expects parameter 1 to be array, boolean given in /volume1/web/phpseclib/Net/SSH2.php on line 1411 Notice: Expected SSH_MSG_KEXDH_REPLY in /volume1/web/phpseclib/Net/SSH2.php on line 1414 Login Failed Notice: Connection closed prematurely in /volume1/web/phpseclib/Net/SSH2.php on line 3126
tchex a écrit:Il faut peut être poser la question ici en parlant de cette erreur Expected SSH_MSG_KEXDH_REPLY
<?php
$connection = ssh2_connect('<@ip>', 22);
if (!ssh2_auth_password($connection, 'root', '<password>')) {
die('Echec de l\'identification...');
}
$stream = ssh2_exec($connection, 'poweroff');
$errorStream = ssh2_fetch_stream($stream, SSH2_STREAM_STDERR);
// Enable blocking for both streams
stream_set_blocking($errorStream, true);
stream_set_blocking($stream, true);
echo "OnGoing Shutdown";
?>
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 13 invité(s)