Bug 3360 - Ctrl-C or ~. doesn't work with SessionType none
Summary: Ctrl-C or ~. doesn't work with SessionType none
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 8.7p1
Hardware: Other Linux
: P5 normal
Assignee: Damien Miller
URL:
Keywords:
Depends on:
Blocks: V_8_9
  Show dependency treegraph
 
Reported: 2021-11-07 03:19 AEDT by Christoph Anton Mitterer
Modified: 2022-02-25 13:56 AEDT (History)
2 users (show)

See Also:


Attachments
don't put tty in raw mode for sessiontype=none (522 bytes, patch)
2021-11-30 12:08 AEDT, Damien Miller
dtucker: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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