2017 © Pedro Peláez
 

library libssh2

PHP SSH2 wrapper library

image

degagne/libssh2

PHP SSH2 wrapper library

  • Wednesday, January 24, 2018
  • by ddegagne
  • Repository
  • 2 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 47 % Grown

The README.md

LibSSH2

Latest Stable Version Latest Unstable Version License composer.lock Scrutinizer Code Quality Build Status Code Intelligence Status, (*1)

LibSSH2 implements all supported SSH2 functions from the libssh2 extension., (*2)

Requirements

  • PHP >= 5.4
  • libssh2 Extension

Installation

Add libssh2 package to your composer.json file., (*3)

{
    "require": {
        "degagne/libssh2": "~1.2.1"
    }
}

or run composer require degagne/libssh2, (*4)

Usage

$configuration = (new Configuration())
    ->set_username('username')
    ->set_password('password')
    ->set_host('hostname');

$authentication = new Password($configuration);

$ssh = new SSH($configuration, $authentication);
$ssh->exec('ls -ltr');

$output = $ssh->get_output();     // stdout
$errors = $ssh->get_error();      // stderr
$retval = $ssh->get_exitstatus(); // return code

With Kerberos:, (*5)

$kerberos = new Kerberos($configuration, $authentication);
$krb_cache = $kerberos->kcreate('principle');

$ssh->exec("export KRBCCNAME={$krb_cache};ls -ltr");

Kerberos requires the use of the KRBCCNAME environmental variable to be set., (*6)

The Versions

24/01 2018

dev-master

9999999-dev https://github.com/degagne/libssh2

PHP SSH2 wrapper library

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-ssh2 *

 

by Deric Degagne

php ssh2 libssh2

24/01 2018

v1.2.0

1.2.0.0 https://github.com/degagne/libssh2

PHP SSH2 wrapper library

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-ssh2 *

 

by Deric Degagne

php ssh2 libssh2

23/01 2018

v1.0.0

1.0.0.0 https://github.com/degagne/libssh2

PHP SSH2 wrapper library

  Sources   Download

The Requires

  • php >=5.4.0
  • ext-ssh2 *

 

by Deric Degagne

php ssh2 libssh2

02/11 2017

v1.1.x-dev

1.1.9999999.9999999-dev https://github.com/degagne/libssh2

PHP SSH2 wrapper library

  Sources   Download

The Requires

  • php >=5.4.0
  • ext-ssh2 *

 

by Deric Degagne

php ssh2 libssh2

19/10 2017

v1.0

1.0.0.0 https://github.com/degagne/libssh2

PHP SSH2 wrapper library

  Sources   Download

The Requires

  • php >=5.4.0
  • ext-ssh2 *

 

by Deric Degagne

php ssh2 libssh2

19/10 2017

v1.0.0.x-dev

1.0.0.9999999-dev https://github.com/degagne/libssh2

PHP SSH2 wrapper library

  Sources   Download

The Requires

  • php >=5.4.0
  • ext-ssh2 *

 

by Deric Degagne

php ssh2 libssh2