nilsonpessim/ssh-connect

It's an easy way to connect to a remote SSH server in your application

v1.1.0 2022-07-10 00:29 UTC

This package is auto-updated.

Last update: 2024-11-11 01:52:42 UTC


README

This php library is used to connect to remote hosts via SSH

Requirements

You need the php_ssh2 library installed in your environment.

Composer:

composer require nilsonpessim/ssh-connect

Basic Use:

<?php

require "../vendor/autoload.php";
use Nilsonpessim\SshConnect\SSH;

var_dump(
    (new SSH('127.0.0.1', 22, root, ''))->exec('ls -la')
);

Whatsapp Badge