phpseclib\System\SSH\Agent::_on_channel_open PHP Method

_on_channel_open() public method

This method is called upon successful channel open to give the SSH Agent an opportunity to take further action. i.e. request agent forwarding
public _on_channel_open ( Net_SSH2 $ssh )
$ssh Net_SSH2
    function _on_channel_open($ssh)
    {
        if ($this->forward_status == self::FORWARD_REQUEST) {
            $this->_request_forwarding($ssh);
        }
    }