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

Read and respect ~/.ssh/config #335

Closed
vince-weka opened this issue Jan 29, 2022 · 1 comment
Closed

Read and respect ~/.ssh/config #335

vince-weka opened this issue Jan 29, 2022 · 1 comment

Comments

@vince-weka
Copy link

Is your feature request related to a problem? Please describe.
I'm using a ~/.ssh/config file to set what keys go to which hosts, and such. parallel-ssh does not read or process the config file, like the ssh command does.

Describe the solution you'd like
Read/parse, and automatically use settings in the config file when creating the SSHClient and ParallelSSHClient objects, unless specific things are overridden via arguments.

Describe alternatives you've considered
None, really. I'd like to move away from paramiko, and this is a bit of a blocker. I'll either have to stick with paramiko, or steal (ahem, borrow?) their code for parsing the config file and use that in my program... Maybe the same can be done here?

Additional context
None

@pkittenis
Copy link
Member

Hi there,

Thanks for the interest. There is already an issue for doing this - #103 . PRs welcome.

Per that issue, it shouldn't be automatic but it should produce corresponding HostConfig entries from that config file. Libraries should not automatically use external config files from another application, that's a bad design.

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

No branches or pull requests

2 participants