Windowsでコマンドを実行することを拒否するssh_exec()
の問題の悪夢があります。ssh2_execが単純なコマンドを実行していません
<?php
$connection = ssh2_connect('localhost', 22);
ssh2_auth_none($connection, 'root');
$stream = ssh2_exec($connection, 'C:\Program Files\CCleaner\CCleaner.exe',FALSE);
?>
それは私に次の警告を示しています:Unable to request a channel from remote host in
は
は、ここに私のコードです。ヒントがあれば教えてください。ありがとうございました。
: '(!$接続が){ ダイがあれば、( "接続に失敗しましたが。") } ' –