与ssh_exec()
拒绝在Windows中执行命令。
这里是我的代码: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
。如果您有任何提示,请告诉我。谢谢。
什么是增加这个结果:'如果($连接!){ 模具( “连接失败。”) }' – 2015-10-02 17:18:56