#1051710 Cannot use Ctrl-C to interrupt remote command with ControlMaster=auto

Package:
openssh-client
Source:
openssh-client
Description:
secure shell (SSH) client, for secure access to remote machines
Submitter:
Giovanni Mascellani
Date:
2023-09-11 14:27:03 UTC
Severity:
normal
#1051710#5
Date:
2023-09-11 14:19:58 UTC
From:
To:
My SSH is configured with these directives:

ControlMaster auto
ControlPath ~/.ssh/control/%r@%h:%p.sock
ControlPersist yes

Suppose I connect to some host and launch a command potentially running for a
long or infinite time:

$ ssh host tail -F some/file

Up to version 1:9.3p2-1 I could stop the remote command and the SSH process
pressing Ctrl-C (i.e., by sending SIGINT to the SSH process). This doesn't work
any more. It works instead if I disable the control session:

$ ssh -o ControlMaster=no host tail -F some/file

Thanks for maintaining the package, Giovanni.