Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ssh_config parsing #454

Open
aspacca opened this issue Feb 20, 2025 · 0 comments
Open

Support for ssh_config parsing #454

aspacca opened this issue Feb 20, 2025 · 0 comments

Comments

@aspacca
Copy link

aspacca commented Feb 20, 2025

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant