A simple shell interface

package scrissh

Methods

Connects to a SSH server using PHP native SSH2 interface if available or phpseclib as a fallback

connect(string $host, int $port, string $user, string $pub_key, string $prv_key) : \SSH2 | \Net_SSH2 | bool
Static

Parameters

$host

string

$port

int

$user

string

$pub_key

string

$prv_key

string

Returns

\SSH2\Net_SSH2boolSSH2 object or phpseclib Net_SSH2 object or false