hexpang / ssh-client
SSH Client
Installs: 13 515
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-12-05 04:15:06 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!";
}