Class to create ssh tunnels to connect to protected database servers

 Methods

Constructor

__construct(string $host, int $port) 

Parameters

$host

string

$port

int

Create a tunnel using the current ssh connection

tunnel(string $host, int $port, string $auth_type, array $auth_params) : \stream

Parameters

$host

string

$port

int

$auth_type

string

$auth_params

array

Returns

\stream

 Properties

 

$stream

$stream 

 

$session

$session