sciancio / connectionmanager2

Simple GUI app for Gnome 3 that provides a menu for initiating SSH/Telnet connections
60 stars 45 forks source link

Could not parse valid .ssh/config #51

Open gerdriesselmann opened 9 years ago

gerdriesselmann commented 9 years ago

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:

All in all this results into

Expected behavior would be:

Given the above example, the following result is expected:

gerdriesselmann commented 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.

ikus060 commented 7 years ago

Bump, Any update of this issue. I'm trying to use this feature, but I canot get ConnectionManager to load my config.