Bug 2164711 - Connecting with the command switch -N works fine, with "-o SessionType none" I cannot kill the process anymore
Summary: Connecting with the command switch -N works fine, with "-o SessionType none" ...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: 37
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Dmitry Belyavskiy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-26 08:53 UTC by Kees de Jong
Modified: 2023-06-02 13:56 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-06-02 13:56:54 UTC
Type: Bug
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-721 0 None None None 2023-01-26 08:56:58 UTC

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`


Note You need to log in before you can comment on or make changes to this bug.