hexpang / ssh-client
SSH Client
Installs: 13 251
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: ^5.5
This package is not auto-updated.
Last update: 2024-11-07 03:47:55 UTC
README
SSH Client for PHP.
Install With Composer
composer require hexpang/ssh-client
Namespace
hexpang\Client\SSHClient
Require
Usage
require_once 'path_to/vendor/autoload.php';
use hexpang\Client\SSHClient\SSHClient;
$client = new SSHClient($host,$port,$username,$password);
if($client->ping($host,$port,10)){
if($client->connect() && $client->authorize()){
var_dump($client->cmd('ls -l'));
}else{
echo "Oops.";
}
}else{
echo "Ping Timeout!";
}