ssh_config icon indicating copy to clipboard operation
ssh_config copied to clipboard

Get all settings for a host

Open kke opened this issue 2 years ago • 1 comments

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

kke avatar Jan 25 '23 12:01 kke

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

NitroCao avatar Feb 22 '23 09:02 NitroCao