ssh2_disconnect

Close a connection to a remote SSH server

Description

bool ssh2_disconnect(resource $session)

Close a connection to a remote SSH server.

Parameters

session

An SSH connection link identifier, obtained from a call to ssh2_connect.

Return Values

Returns true on success or false on failure.

See Also

  • ssh2_connect