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

Get all settings for a host #56

Open
kke opened this issue Jan 25, 2023 · 1 comment
Open

Get all settings for a host #56

kke opened this issue Jan 25, 2023 · 1 comment

Comments

@kke
Copy link

kke commented Jan 25, 2023

It seems every value needs to be queried separately.

It would be great to have something like:

   host, _ := ssh_config.GetHost("foo")
   fmt.Println(host.IdentityFile)
   fmt.Println(host.StrictHostKeyChecking)
   host.Port = 45
   fmt.Println(host.SSHConfig())
@NitroCao
Copy link

I think it would be better for GetHost method to return a map map[string]string.

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

2 participants