hexpang/laravel-ssh
Composer 安装命令:
composer require hexpang/laravel-ssh
包简介
SSH Client For Laravel.
关键字:
README 文档
README
SSH Client for laravel.
v0.5 moved to ssh-client
| Build Status |
|---|
| [ |
v0.4 changed namespace and file directory
If got error about class not found,try
composer dump-autoload
Install With Composer
composer require hexpang/laravel-ssh
Open config/app.php add for aliases
'SSH' => hexpang\Client\SSH\SSHClient::class,
Usage
use SSH;
$ssh = new SSH($host,$port,$username,$password);
Method
| 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) |
统计信息
- 总下载量: 7.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-24