nilsonpessim / ssh-connect
It's an easy way to connect to a remote SSH server in your application
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/nilsonpessim/ssh-connect
Requires
- php: >=7.4
- ext-ssh2: *
README
This php library is used to connect to remote hosts via SSH
Requirements
You need the php_ssh2 library installed in your environment.
- Install Library Linux - Tested on Ubuntu 18.04
- Install Library Windows - Tested on Windows 11 - xampp v3.3.0 - php 8.1.6
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')
);