pyinfra.api.connectors.sshuserclient.config module

This file as originally part of the “sshuserclient” pypi package. The GitHub source has now vanished (https://github.com/tobald/sshuserclient).

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

Bases: paramiko.config.SSHConfig

an SSHConfig that supports includes directives https://github.com/paramiko/paramiko/pull/1194

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

Read an OpenSSH config from the given file object.

Parameters

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