def METHOD_NAME(self, client):
    try:
        version = client.get_transport().remote_version
    except Exception as e:
        self.log.warning("Error collecting version: %s", e)
        return
    if 'OpenSSH' in version:
        flavor = 'OpenSSH'
    else:
        flavor = 'unknown'
    self.log.debug('Version collected: %s, flavor: %s', version, flavor)
    self.set_metadata('version', version, scheme='regex', pattern=SSH_REMOTE_VERSION_PATTERN)
    self.set_metadata('flavor', flavor)