Skip to content

parseOpenSshConfig

function parseOpenSshConfig(text: string): OpenSshConfigEntry[];

Defined in: src/profiles/importers/OpenSshConfigImporter.ts:29

Parses OpenSSH ssh_config text into structured Host blocks.

The parser is intentionally permissive: unknown directives are retained and Match blocks are skipped.

ParameterTypeDescription
textstringContents of the ssh_config file.

OpenSshConfigEntry[]

Parsed Host entries in source order.