pyinfra.api.connectors.sshuserclient.config module

This file as originally part of the “sshuserclient” pypi package. The GitHub source has now vanished (

class pyinfra.api.connectors.sshuserclient.config.SSHConfig

Bases: paramiko.config.SSHConfig

an SSHConfig that supports includes directives

SETTINGS_REGEX = re.compile('(\\w+)(?:\\s*=\\s*|\\s+)(.+)')
parse(file_obj, parsed_files=None)

Read an OpenSSH config from the given file object.

file_obj – a file-like object to read the config file from