PHP で SSH ストリームの出力を表示できません。これは私のコードです:
$output = ssh2_exec($sshCon, $sshCommand);
stream_set_blocking($output, true);
echo stream_get_contents($output);
出力は空白です。ただし、コマンドは確実に実行されています。ここに示す解決策も試しました: Empty PHP SSH2 stream contents, even with stream_set_blocking?
出力はプロセス ID である必要があります。
ありがとう!