Open gerdriesselmann opened 9 years ago
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.
My .ssh/config looks like this:
However, ConnectionManager is not able to parse it. I did a look into the code, and there are a couple of problems here:
Host example.com example.org
is not translated into two entries, but only oneHostName
entry, the previous entry is reused.All in all this results into
example.com example.org
containingme@them@example.de
Expected behavior would be:
Host
by \s+ and create entry for each of resulting itemsHostName
is not set, use value ofHost
(that is the current item) insteadGiven the above example, the following result is expected:
example.de
:them@example.de
example.com
:me@example.com
example.org
:me@example.org