Return a dict of config options for a given hostname.
The host-matching rules of OpenSSH's ssh_config man page
are used, which means that all configuration options from matching host
specifications are merged, with more specific hostmasks taking
precedence. In other words, if "Port" is set
under "Host *" and also "Host
*.example.com" , and the lookup is for
"ssh.example.com" , then the port entry for
"Host *.example.com" will win out.
The keys in the returned dict are all normalized to lowercase (look
for "port" , not "Port" . No
other processing is done to the keys or values.
- Parameters:
hostname (str) - the hostname to lookup
|