Downloads
Stars
Version
SSH Client for laravel.
Build Status |
---|
composer require hexpang/laravel-ssh
Open config/app.php add for aliases
'SSH' => hexpang\Services\SSHService::class,
use SSH;
$ssh = new SSH($host,$port,$username,$password);
Method | Description | Usage |
---|---|---|
Ping | Check port | $ssh->ping($host,$port,$timeOut) |
Connect | Connect to server | $ssh->Connect() |
Authorize | Authorize | $ssh->Authorize() |
Disconnect | Disconnect | $ssh->Disconnect() |
Execute | Execute command and response result for an array[ Response,Error ] | $ssh->Execute($command) |