ssh2_forward_listen
PHP function
Edit on GitHub ✎
(PECL ssh2 >= 0.9.0)
Bind a port on the remote server and listen for connections
Description
ssh2_forward_listen(resource $session, int $port, [string $host], int $max_connections = 16): resource|false
Binds a port on the remote server and listen for connections.
Func
Parameters
sessionAn SSH Session resource, obtained from a call to
ssh2_connect().portThe port of the remote server.
hostmax_connections
Return Values
Returns an SSH2 Listener, Falseforfailure.