PHPackages                             jlaso/ssh2 - 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. jlaso/ssh2

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

jlaso/ssh2
==========

Automation tool for remote servers with pure PHP ssh2.

2638PHP

Since Nov 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jlaso/ssh2)[ Packagist](https://packagist.org/packages/jlaso/ssh2)[ RSS](/packages/jlaso-ssh2/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![License](https://camo.githubusercontent.com/78346551096515fc6fdb57249c1844246e202b095455df1a39b32327fab98ca7/68747470733a2f2f706f7365722e707567782e6f72672f6a6c61736f2f737368322f6c6963656e73652e737667)](https://packagist.org/packages/jlaso/ssh2)[![Latest Unstable Version](https://camo.githubusercontent.com/6e8bd599ef196e5e711dab4c8f1a8c3aaea9a15682b3be8147ec4531f5953399/68747470733a2f2f706f7365722e707567782e6f72672f6a6c61736f2f737368322f762f756e737461626c652e737667)](https://packagist.org/packages/jlaso/ssh2)[![Total Downloads](https://camo.githubusercontent.com/efd151ed1053f07b1a9b08ed9e44d1d6ae89d804f0d9e5fcc7f888e97e96b8cb/68747470733a2f2f706f7365722e707567782e6f72672f6a6c61736f2f737368322f646f776e6c6f6164732e737667)](https://packagist.org/packages/jlaso/ssh2)[![Latest Stable Version](https://camo.githubusercontent.com/9e2e0d97562f0cd42e9ec218b74ab4ebec3c1d91634565681e76ac8dccbb200c/68747470733a2f2f706f7365722e707567782e6f72672f6a6c61736f2f737368322f762f737461626c652e737667)](https://packagist.org/packages/jlaso/ssh2)

SSH2
----

[](#ssh2)

This is a little wrapper to automate task in remote servers

with this package you can install, backup or do anything you want via ssh commands

### You need to install ssh2 support for PHP

[](#you-need-to-install-ssh2-support-for-php)

In OSX for me was useful this guide:
------------------------------------

[](#in-osx-for-me-was-useful-this-guide)

You can test or run locally with the ansible recipe to start a VirtualMachine
-----------------------------------------------------------------------------

[](#you-can-test-or-run-locally-with-the-ansible-recipe-to-start-a-virtualmachine)

once composer launched move to vendor/jlaso/ss2h/

and start machine with vagrant up

obviously you need to have installed vagrant and ansible in your system

Once into the virtualmachine (with vagrant ssh) move to /vagrant and run composer install

Then you can run the demo with php demo.php

---

You can run the demo also in your local machine if you have support for php-ssh2

demo
----

[](#demo)

Servers declaration: see servers.ini.dist and copy or rename to servers.ini

Tasks automation see commands.ini.dist and copy or rename to commands.ini

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f19216fd9d91bd7cfff14362e2ddb5728bd2d8f50d2e0174626fc61510ed33b?d=identicon)[jlaso](/maintainers/jlaso)

---

Top Contributors

[![jlaso](https://avatars.githubusercontent.com/u/1332197?v=4)](https://github.com/jlaso "jlaso (3 commits)")

### Embed Badge

![Health badge](/badges/jlaso-ssh2/health.svg)

```
[![Health](https://phpackages.com/badges/jlaso-ssh2/health.svg)](https://phpackages.com/packages/jlaso-ssh2)
```

###  Alternatives

[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3383.9M34](/packages/wa72-htmlpagedom)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
