SkillAgentSearch skills...

OOSSH

Object Oriented SSH

Install / Use

/learn @frequence-web/OOSSH
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

OOSSH - Object Oriented SSH for PHP

Build Status

OOSSH is an easy-to-use object encapsulation of the php SSH2 library.

Basic Usage


    $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);
        }
    });

TODO

  • File handling (SCP)

Contribute

Send me an email yohan@giarelli.org ;)

View on GitHub
GitHub Stars36
CategoryDevelopment
Updated3y ago
Forks6

Languages

PHP

Security Score

70/100

Audited on Nov 19, 2022

No findings