weelrs8/ssh

SSH Connection

Maintainers

Package info

github.com/zephx/ssh

Issues

pkg:composer/weelrs8/ssh

Statistics

Installs: 59

Dependents: 1

Suggesters: 0

Stars: 1

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

This package is not auto-updated.

Last update: 2026-04-26 02:12:14 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');