【发布时间】:2013-04-02 01:33:24
【问题描述】:
我对@987654321@ 拒绝在 Windows 中执行命令感到噩梦。
这是我的代码:
<?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。如果您有任何提示,请告诉我。谢谢。
【问题讨论】:
-
添加这个结果是什么:
if (! $connection) { die("Connection failed."); }