You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a tool that reads into the ssh config and uses FZF to be able to sort these, with enter and you should SSH to that host. I'm currently rewriting it from python to go(i'm a go beginner) and I saw your project so I thought it would fit well.
In my ssh config I have the following structure.
# ~/.ssh/config
Include ~/dotfiles/ssh/config
Host *
AddKeysToAgent yes
And in ~/dotfiles/ssh/config I have a bunch of Hosts defined.
Now, the problem is that these are not listed when I'm using ssh_config.Decode(). Only the root ones. This is a problem for me as I neccesarily know what my hosts are named. So by iterating I get nothing of it.
The way for me as I try to work around this issue is to somehow maybe regex my way out of it and keep multiple cfg instances. Python-pseudo code like:
The UserSettings object implements this sort of cascading configuration retrieval, but you can't control which files it reads from IIRC. Maybe if it were made more general then you could use that.
I'm working on a tool that reads into the ssh config and uses FZF to be able to sort these, with enter and you should SSH to that host. I'm currently rewriting it from python to go(i'm a go beginner) and I saw your project so I thought it would fit well.
In my ssh config I have the following structure.
And in
~/dotfiles/ssh/config
I have a bunch ofHosts
defined.Now, the problem is that these are not listed when I'm using
ssh_config.Decode()
. Only the root ones. This is a problem for me as I neccesarily know what my hosts are named. So by iterating I get nothing of it.The way for me as I try to work around this issue is to somehow maybe regex my way out of it and keep multiple
cfg
instances. Python-pseudo code like:(I haven't implemeted this or something similar, just prototyping).
I previously used Storm, they implemented
Include
like thisIt would be awesome if
Decode
would also be able to recursivly get these as well. Either opt-in with some sort of boolean flag or natively.The text was updated successfully, but these errors were encountered: