SSH .ssh/config parsing assumes one host per line
Bug #328968 reported by
Mattias Eriksson
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Do |
Fix Released
|
Undecided
|
Chris S. |
Bug Description
The code on SSHHosts.cs
Regex r = new Regex ("^\\s*Host\\s+([^ ]+)\\s*$");
}
seems to assume one host per Host line in .ssh/config. However this is not true a hostline may look like
Host foo foo.domain.com another.domain.com
So I suggest to match ^\sHost (.+)$
Then split $1 on space and add that. I don't have time to learn how to do this right now since I'm not familiar with mono.
Related branches
Changed in do: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
How does it determine which host to connect to?
--
--Alex Launi