OOSSH is an easy-to-use object encapsulation of the php SSH2 library.
$oossh = OOSSH\OOSSH::createAndLoad(
array(
'foo' => array(
'host' => 'foo.bar.baz',
'username' => 'foo',
'password' => 'baz',
)
)
);
$oossh->get('foo')->exec('uname -a', function($stdio, $stderr) {
echo $stdio;
if ($stderr) {
throw new RuntimeException($stderr);
}
});
- File handling (SCP)
Send me an email [email protected] ;)