Bug 1746

Summary: unexpected warning for mux control commands when stdin is not connected to a tty
Product: Portable OpenSSH Reporter: Salvador Fandiño <sfandino>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor CC: djm
Priority: P2    
Version: 5.4p1   
Hardware: All   
OS: OpenBSD   
Bug Depends on:    
Bug Blocks: 1708    
Attachments:
Description Flags
/tmp/hushmuxtty.diff none

Description Salvador Fandiño 2010-03-27 11:26:04 AEDT
Example:

$ ssh -O check -S /foo/bar -- host </dev/null
Pseudo-terminal will not be allocated because stdin is not a terminal.

Is there any reason to force tty allocation when a mux command is given?

As a workaround -T can be used:
$ ssh -T -O check -S /foo/bar -- host </dev/null
Comment 1 Damien Miller 2010-03-27 13:06:20 AEDT
Created attachment 1825 [details]
/tmp/hushmuxtty.diff

hush TTY warning for -O
Comment 2 Damien Miller 2010-03-27 13:08:21 AEDT
It was just a bogus warning, no TTY handling is performed when executing mux commands.
Comment 3 Damien Miller 2010-04-10 15:53:56 AEST
patch applied - will be in OpenSSH 5.6p1.
Comment 4 Damien Miller 2011-01-24 12:33:59 AEDT
Move resolved bugs to CLOSED after 5.7 release