[Bug 2889] New: Use of -o ControlPath=<socket> -O check requires bogus string as part of host's name?

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Jul 31 09:45:40 AEST 2018


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

            Bug ID: 2889
           Summary: Use of -o ControlPath=<socket> -O check requires bogus
                    string as part of host's name?
           Product: Portable OpenSSH
           Version: 6.9p1
          Hardware: 68k
                OS: Mac OS X
            Status: NEW
          Severity: minor
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: mindrot at jake8us.org

I'm a mod on the Stackexchange site for Unix & Linux and someone
recently posted this question there:
https://unix.stackexchange.com/questions/459450/how-to-exit-openssh-control-master-process-without-using-lsof-or-fuser. 

I answered this question but noticed that the solution seemed like a
bug.

If I tried to check on the status of a control master like this, it
failed:

```
$ ssh -o
ControlPath=~/.ssh/master-57db26a0499dfd881986e23a2e4dd5c5c63e26c2 -O
check
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c
cipher_spec]
           [-D [bind_address:]port] [-E log_file] [-e escape_char]
           [-F configfile] [-I pkcs11] [-i identity_file]
           [-L [bind_address:]port:host:hostport] [-l login_name] [-m
mac_spec]
           [-O ctl_cmd] [-o option] [-p port]
           [-Q cipher | cipher-auth | mac | kex | key]
           [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W
host:port]
           [-w local_tun[:remote_tun]] [user@]hostname [command]
```

But if I provide it a bogus argument, such as, 'blah' it works as
expected:

```
ssh -o
ControlPath=~/.ssh/master-c0c363c21c2ab6e5754aad2eb0f73b87e8501565 -O
check blah
Master running (pid=14595)
#
```

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


More information about the openssh-bugs mailing list