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

Follow Include to extract more SSH hosts #993

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

hongquan
Copy link
Contributor

Sometimes, we have so many SSH servers that divide to extra config files and include in ~/.ssh/config

This PR follow the Include directive to retrieve more hosts.

Example of such config:

Include extra/agriconnect
Include "extra/Old servers"

This PR also fix an issue that orginal code grabs this:

Host *

@fdncred fdncred merged commit 8c21f6e into nushell:main Dec 14, 2024
1 check passed
@fdncred
Copy link
Collaborator

fdncred commented Dec 14, 2024

Thanks

NotTheDr01ds pushed a commit to NotTheDr01ds/nu_scripts-fork that referenced this pull request Dec 20, 2024
Sometimes, we have so many SSH servers that divide to extra config files
and include in *~/.ssh/config*

This PR follow the `Include` directive to retrieve more hosts.

Example of such config:

```ssh_config
Include extra/agriconnect
Include "extra/Old servers"
```

This PR also fix an issue that orginal code grabs this:

```ssh_config
Host *
```
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

Successfully merging this pull request may close these issues.

2 participants