phpseclib\Net\SCP::_close PHP Method

_close() public method

Closes the connection to an SSH server
public _close ( )
    function _close()
    {
        switch ($this->mode) {
            case self::MODE_SSH2:
                $this->ssh->_close_channel(SSH2::CHANNEL_EXEC, true);
                break;
            case self::MODE_SSH1:
                $this->ssh->disconnect();
        }
    }