Skip to content

Execute shell commands over ssh like calling of object methods

Notifications You must be signed in to change notification settings

nolka/php-object-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

php-object-ssh

call commands over ssh like object methods

usage example

$ssh = new $Ssh();
$ssh->connect('localhost'); 
$ssh->auth('login', 'password');
var_dump($ssh->ls('-la'));
var_dump($ssh->whoami());

this wrapper supports interactive shell

// ... connection made...

var_dump( $ssh->shell('sudo -i')); // trying to get root access
var_dump($ssh->shell('password')); // input our password here
var_dump($ssh->shell('reboot')); // call reboot command :D

About

Execute shell commands over ssh like calling of object methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages