ssh2_connect

Example

 resource ssh2_connect ( string $host [, int $port = 22 [, array $methods [, array $callbacks ]]] ) 

Description

Establish a connection to a remote SSH server. Once connected, the client should verify the server's hostkey using ssh2_fingerprint(), then authenticate using either password or public key.

Return Values

Returns a resource on success, or FALSE on error.