[Bug 357] New: SSH does not handle "Protocol" option in ~/.ssh/options properly

Thomas Binder binder at arago.de
Thu Jul 18 01:49:27 EST 2002


Hi!

On Thu, Jul 18, 2002 at 12:55:00AM +1000, bugzilla-daemon at mindrot.org wrote:
> Running OpenSSH 3.4p1 on Linux.  Here's the contents of ~/.ssh/options:
> 
> Host *
> UsePrivilegedPort no
> Protocol 1
> 
> Host shevy
> HostName shevy.roaringpenguin.com
> User dfs
> Protocol 2
> Port 23
> 
> When I do "ssh -v shevy", we see:
> [...]
> As you see, it used Protocol 1 instead of Protocol 2.  When I
> explicitly put -2 on the command line, it works as expected:

You should read the documentation. From ssh_config's manpage:

-- snip --
     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.
-- snap --


Ciao

Thomas



More information about the openssh-unix-dev mailing list