[Bug 3072] New: Some options ignored in Host specifications in ssh_config

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Sep 20 07:07:25 AEST 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=3072

            Bug ID: 3072
           Summary: Some options ignored in Host specifications in
                    ssh_config
           Product: Portable OpenSSH
           Version: 8.0p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jaak+mindrot at ristioja.ee

Given ssh_config files like:

  MACs hmac-sha1
  Host somehost
    MACs +hmac-md5

The MACs +hmac-md5 line is ignored when using "ssh somehost". "ssh -o
MACs=hmac-md5 somehost" seems to work just fine.

The source code at readconf.c seems to contain:

   case oMacs:
        arg = strdelim(&s);
        if (!arg || *arg == '\0')  
            fatal("%.200s line %d: Missing argument.", filename,
linenum);
        if (*arg != '-' && !mac_valid(*arg == '+' ? arg + 1 : arg))
            fatal("%.200s line %d: Bad SSH2 Mac spec '%s'.",   
                filename, linenum, arg ? arg : "<NONE>");
        if (*activep && options->macs == NULL)
            options->macs = xstrdup(arg);
        break;

Which seems to mean that if options->macs is already set, the MACs line
under "Host somehost" is ignored. Looking at the source code a number
of other options seem to be ignored similarly as well.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list