weelrs8/ssh

SSH Connection

dev-master / 1.0.x-dev 2015-05-08 15:50 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:39:18 UTC


README

Utilizando autenticação de usuário e senha

<?php
use SSH\SSHConnection;
use SSH\Auth\Password;

$ssh = new SSHConnection();
$ssh->open('172.17.10.180');
$ssh->authenticate(new Password('username', 'password'));

Executando um comando

<?php

$ssh->run('ls -la');