Skip to content

ssh_config file not used by default #1734

@sbeaulie

Description

@sbeaulie

Current code has an unexpected behavior:
https://github.com/voxpupuli/beaker/blob/master/lib/beaker/options/presets.rb#L197-L198

NET:SSH documentation sets it to true by default
https://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start states

config => set to true to load the default OpenSSH config files (~/.ssh/config, /etc/ssh_config), or to false to not load them, or to a file-name (or array of file-names) to load those specific configuration files. Defaults to true.

Could we set it to true and optionally turn it off (current behavior) via an option flag? I don't think in most cases it would be a breaking change to respect the ssh_config file, but we could release a major version bump and document the change?

In my case it would be easier to have it default to true than having to change all the existing beaker usage specifically to turn it on via a new option flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions