You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example above, the port for ssh.example.com should be 23(the more specific one i.e. *.example.com, not *). Any one to clear out this for me? Thanks.
I read through the code, but found nothing dealing with this kind of precedence.
That is actually a documentation bug and not a bug in the code! The openssh_config man page states this:
For each parameter, the first obtained value will be used.
The configuration files contain sections separated by ``Host'' specifications, and that section is only
applied for hosts that match one of the patterns given in the specification.
The matched host name is the one given on the command line.
Since the first obtained value for each parameter is used, more host-specific declarations should be
given near the beginning of the file, and general defaults at the end.
And this is what we follow. In older releases of paramiko the broken behaviour described by the documentation was used. This was changed in #93 and several other pull requests after that one.
I read this, says 'with more specific hostmasks taking precedence', but when I tried, the output is not what the documentation says:
In the example above, the port for ssh.example.com should be 23(the more specific one i.e. *.example.com, not *). Any one to clear out this for me? Thanks.
I read through the code, but found nothing dealing with this kind of precedence.
I first asked this question on stackoverflow.com, but someone suggest me open one issue here.
http://stackoverflow.com/questions/21567192/openssh-host-matching-rules-not-honored-in-paramiko
The text was updated successfully, but these errors were encountered: