Skip to content

Provide a function to easily return Hosts #60

@Dentrax

Description

@Dentrax

Currently we have to manually decode the configuration file:

f, _ := os.Open(filepath.Join(os.Getenv("HOME"), ".ssh", "config"))
cfg, _ := ssh_config.Decode(f)
// cfg.Hosts

It'd be nice to have a function like ssh_config.GetHosts(). It should defaults to DefaultUserSettings unless overridden the config path from the parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions