bugzilla-daemon at bugzilla.mindrot.org
2018-Jul-30 23:45 UTC
[Bug 2889] New: Use of -o ControlPath=<socket> -O check requires bogus string as part of host's name?
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.
bugzilla-daemon at bugzilla.mindrot.org
2018-Aug-10 00:25 UTC
[Bug 2889] Use of -o ControlPath=<socket> -O check requires bogus string as part of host's name?
https://bugzilla.mindrot.org/show_bug.cgi?id=2889
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
CC| |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Yes - this is intentional.
ControlPath may contain %-expansions that need a hostname to expand
fully.
We could conceivably check to see whether ControlPath actually needs
this and make the hostname optional but 1) ControlPaths that use %h are
common and 2) I'd rather not make the argument parsing code more of a
maze than it already is.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2018-Aug-10 19:37 UTC
[Bug 2889] Use of -o ControlPath=<socket> -O check requires bogus string as part of host's name?
https://bugzilla.mindrot.org/show_bug.cgi?id=2889 --- Comment #2 from slm <mindrot at jake8us.org> --- OK, I can buy that. I'll update the question w/ your justification for those that may stumble upon this on the Internet. Thanks for getting back and clarifying. -Sam -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23 04:53 UTC
[Bug 2889] Use of -o ControlPath=<socket> -O check requires bogus string as part of host's name?
https://bugzilla.mindrot.org/show_bug.cgi?id=2889
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #3 from Damien Miller <djm at mindrot.org> ---
closing resolved bugs as of 8.6p1 release
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.