connectionmanager2
connectionmanager2 copied to clipboard
Could not parse valid .ssh/config
My .ssh/config looks like this:
Host example.de
HostName example.de
User them
Host example.com example.org
User me
However, ConnectionManager is not able to parse it. I did a look into the code, and there are a couple of problems here:
- The line
Host example.com example.org
is not translated into two entries, but only one - Since it misses a
HostName
entry, the previous entry is reused.
All in all this results into
- an entry
example.com example.org
containing -
me@[email protected]
Expected behavior would be:
- Split
Host
by \s+ and create entry for each of resulting items - If
HostName
is not set, use value ofHost
(that is the current item) instead
Given the above example, the following result is expected:
- Entry
example.de
:[email protected]
- Entry
example.com
:[email protected]
- Entry
example.org
:[email protected]
Given the SSH settings are already configured through SSH config, it would be enough to just read the Host
line, split it by space and create an entry for each item with title and host set to the item itself. User, HostName, and Port may be ignored.
At least that's what the SSH Search Provider Extension (https://github.com/brot/gnome-shell-extension-sshsearch) does.
Bump, Any update of this issue. I'm trying to use this feature, but I canot get ConnectionManager to load my config.