[Bug 3890] New: SSH with a control path and -tt hangs waiting for user input.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Nov 3 14:39:04 AEDT 2025


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

            Bug ID: 3890
           Summary: SSH with a control path and -tt hangs waiting for user
                    input.
           Product: Portable OpenSSH
           Version: 10.1p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jacobenders1 at gmail.com

Hello, I've been trying to debug why my SSH connections keep hanging. I
recently upgraded my NIXOS system to latest packages, and now my
scripts are broken.

I've nailed it down to it likely being an SSH issue. I don't know if
this change was intentional or not. But it's a breaking change.

Below are 3 commands that I expect to all behave kinda the same. The
third command here is causing scripts to hang because it seems to be
waiting for user input. I need to press two buttons on my keyboard and
then it will resume. Something with the ControlFile is being weird.

FIRST COMMAND (GOOD): (NO CONTROL PATH)

ssh yapms.com -o ControlMaster=auto -o 'ControlPath="/home/jacob/bad"'
-o 'User="yapms"' -o ControlPersist=60s 'bash dothing.sh'

OUTPUT> HELLO THERE!!!


SECOND COMMAND (GOOD): (NO CONTROL PATH)
ssh -o ControlMaster=auto -o ControlPersist=60s -o
'IdentityFile="/home/jacob/.ssh/ansible_rsa"' -o 'User="yapms"' -tt
74.208.201.82 'bash dothing.sh'

OUTPUT> HELLO THERE!!!
OUTPUT> Connection to 74.208.201.82 closed.


THIRD COMMAND (BAD): (HAS CONTROL PATH)

ssh -o ControlMaster=auto -o ControlPersist=60s -o
'ControlPath="/home/jacob/bad"' -o
'IdentityFile="/home/jacob/.ssh/ansible_rsa"' -o 'User="yapms"' -tt
74.208.201.82 'bash dothing.sh'

*hangs until I press two keys on my keyboard*

OUTPUT> HELLO THERE!!!
OUTPUT> Shared connection to 74.208.201.82 closed.

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


More information about the openssh-bugs mailing list