ssh2_disconnect

(PECL ssh2 >= 1.0)

ssh2_disconnectClose a connection to a remote SSH server

說(shuō)明

ssh2_disconnect(resource $session): bool

Close a connection to a remote SSH server.

參數(shù)

session

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

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false。

參見(jiàn)