+
Skip to content

Support for ssh_config parsing #454

@aspacca

Description

@aspacca

What do you want?

Being able to refer ssh custom config defined in ~/.ssh/ssh_config, through referencing a matching --ip or --host flag (or a new one added ad hoc) with an Host definition in the ssh config

Why do you want this?

It will easy the process of customizing/overriding ssh options (like currently supported port or ssh-key) without the need of adding support for extra flag.

Recommended solution

Only the subset of the ssh configs that can be mapped to the ones available at https://pkg.go.dev/golang.org/x/crypto/ssh should be supported, and the possibility to reference an Host to "parse" the resulting ssh address to connect

Rely one of the ssh config parser packages already available from the community, with a compatible license and properly maintained for extracting the config values that will be supported.

Most likely introduce a specific flag for enabling the behavior of the ssh config support, adding something like --ssh-config-entry on top of the current available --ip and --host flags

Additional context

Please, consider this as my offer to contribute with a PR for adding the feature. The kind of involvement I'm available for, at design and solution decision level, it's the same as for the other two feature requests. Glad to just write the code of the implementation that will be decided by the maintainer :)

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载