src/sb/SSH2/Client.php
public function tunnel($host, $port)
    {
        $stream = @ssh2_tunnel($this->connection, $command);
        if(!$stream){
            throw new \Exception('Cannot create tunnel to: '.$host.' on port'.$port);
        }

        return $stream;
    }
public function tunnel($host, $port)
    {
        $stream = @ssh2_tunnel($this->connection, $command);
        if(!$stream){
            throw new \Exception('Cannot create tunnel to: '.$host.' on port'.$port);
        }

        return $stream;
    }
public function tunnel ( $ host , $ port ) { $ stream = @ ssh2_tunnel ( $ this -> connection , $ command ) ; if ( ! $ stream ) { throw new \ Exception ( 'Cannot create tunnel to: ' . $ host . ' on port' . $ port ) ; } return $ stream ; }
Tunnels a connection
@param string $host The host to tunnel to via the ssh2 client
@param integer $port The port to tunnel to via the ssh2 client
@return stream The tunnel stream
Tunnels a connection