Bug 3360

Summary: Ctrl-C or ~. doesn't work with SessionType none
Product: Portable OpenSSH Reporter: Christoph Anton Mitterer <calestyo>
Component: sshAssignee: Damien Miller <djm>
Status: CLOSED FIXED    
Severity: normal CC: djm, dtucker
Priority: P5    
Version: 8.7p1   
Hardware: Other   
OS: Linux   
Bug Depends on:    
Bug Blocks: 3353    
Attachments:
Description Flags
don't put tty in raw mode for sessiontype=none dtucker: ok+

Description Christoph Anton Mitterer 2021-11-07 03:19:47 AEDT
Hey.

I'm afraid I could only test this on 8.7.

When SessionType none is in effect, it seems on cannot end the process by normal means (Ctrl-C or ~.) but only by killing it.

When doing so, the same problem I've described at https://bugzilla.mindrot.org/show_bug.cgi?id=2573#c9 occurs, that is,... anything that was entered in the "dead" ssh, is still on stdin and then executed in the local terminal.

Cheers,
Chris.
Comment 1 Damien Miller 2021-11-30 12:08:30 AEDT
Created attachment 3555 [details]
don't put tty in raw mode for sessiontype=none

The problem here is that the tty is placed into raw mode regardless of the session type. IMO it should be left alone when SessionType=none
Comment 2 Damien Miller 2021-12-02 13:58:33 AEDT
Thanks for the report, this is fixed in dc91ceea33cd4 and will be in OpenSSH 8.9
Comment 3 Damien Miller 2022-02-25 13:56:43 AEDT
closing bugs resolved before openssh-8.9