Getting Command Output via SSH2 Functions in PHP
Running command and getting the output via ssh2 is not as straightforward as running command directly using function exec(), it requires a few function calls using “stream”. The following code illustrates how to do it: This is simply for my personal note for future reference, but hopefully it can also …