-
Notifications
You must be signed in to change notification settings - Fork 1
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
ssh config settings outside of a Host block show a warning and fail #6
Comments
Hi,
From what I understand, if this is defined like that, it is applied for all hosts that are defined below this line, unless of course more specific This can be also achieved same way by defining it like this at the top of the ssh config:
This would result with same behavior and sshclick will be able to parse it normally, and also when viewing host details present all those "inherited" attributes when establishing connection. Regarding support for such "host-less" config attributes, since they are supported by current clients, I will consider how to integrate that into the features for next releases...
This one was on my radar from the beginning, and I still don't have good idea how to approach it... For me problem is then how to optimally approach adding/editing configurations, and re-rendering configurations. If you have any proposals how to approach it, I'm open for ideas and discussions. |
I already have a generalized On the support of includes - you already have SSH_Config to parse files. I guess they need to be loaded in some tree or DAG and make the hosts and groups aware of their own source. |
In terms of "includes" you are right, I fully support it being on top for clarity, as openssh clients (ssh, sftp, etc...) treats this keyword similary like C pre-processor... basically when this line is reached, it is during processing just replaced with content of linked files. This makes pure ssh config very flexible in use, such as adding bunch of common Keyword/Args pairs to separate file, and then in main file use Include keyword to load common args to multiple Host definitions. |
When directives are present that are outside of a Host block a warning is shown and the program exits with status code 1.
I have the following at the top of my ssh config file:
and some hosts
$ grep -c -w ^Host ~/.ssh/config 16
but I am getting the following warning unless I comment the first two settings
The text was updated successfully, but these errors were encountered: