Bug 2164711

Summary: Connecting with the command switch -N works fine, with "-o SessionType none" I cannot kill the process anymore
Product: [Fedora] Fedora Reporter: Kees de Jong <keesdejong+dev>
Component: opensshAssignee: Dmitry Belyavskiy <dbelyavs>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 37CC: crypto-team, dbelyavs, dwalsh, jjelen, lkundrak, mattias.ellert, tm
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-02 13:56:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kees de Jong 2023-01-26 08:53:02 UTC
Description of problem:
When using `ssh localhost -o "SessionType none"` I can connect just fine but cannot kill the process with ctrl+c. However, when using `ssh localhost -N`, I can use ctrl+c to kill the process.


Version-Release number of selected component (if applicable):
openssh-8.8p1-7.fc37.x86_64

Additional info:
Someone else tested it on Ubuntu using version 8.9, he couldn't reproduce it. So maybe an update of OpenSSH to 8.9 or newer works.

Comment 1 Dmitry Belyavskiy 2023-02-07 12:16:34 UTC
Could you please try packages from rawhide (OpenSSH 9.0+)?

Comment 2 Kees de Jong 2023-02-08 08:13:39 UTC
I've done the following.

* dnf in fedora-repos-rawhide
* sudo dnf --disablerepo=* --enablerepo=rawhide --releasever=38 update openssh
* systemctl restart sshd
* ssh localhost -o "SessionType none"

And now I can properly kill the SSH session. That version also fixes it.

* After that I rolled back with `dnf history undo last`