PHPackages                             luka/php-ssh - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. luka/php-ssh

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

luka/php-ssh
============

Provides an object-oriented wrapper for the php ssh2 extension.

v2.0.1(7y ago)0126MITPHPPHP ^7.1

Since Mar 4Pushed 1y ago4 watchersCompare

[ Source](https://github.com/lukanetconsult/php-ssh)[ Packagist](https://packagist.org/packages/luka/php-ssh)[ RSS](/packages/luka-php-ssh/feed)WikiDiscussions latest Synced 2d ago

READMEChangelogDependencies (2)Versions (11)Used By (0)

PHP SSH
=======

[](#php-ssh)

[![Build Status](https://camo.githubusercontent.com/d709a6a1c8c8eb2d54874aa35a1332270c08cb5c012afdfe5882e8cd881fedd3/68747470733a2f2f7472617669732d63692e6f72672f6c756b616e6574636f6e73756c742f7068702d7373682e706e673f6272616e63683d646576656c6f70)](https://travis-ci.org/lukanetconsult/php-ssh) (develop)

Provides an object-oriented wrapper for the php ssh2 extension. This is based on the work of [Antoine Hérault](https://github.com/Herzult/php-ssh).

Requirements
------------

[](#requirements)

You need PHP version 7.1+ with the [SSH2 extension](http://www.php.net/manual/en/book.ssh2.php).

Installation
------------

[](#installation)

The best way to add the library to your project is using [composer](http://getcomposer.org).

```
$ composer require luka/php-ssh:^2.0

```

Usage
-----

[](#usage)

### Configuration of the connection

[](#configuration-of-the-connection)

To establish an SSH connection, you must first define its configuration. For that, create a Configuration instance with all the needed parameters.

```
