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.
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
Thanks for the report, this is fixed in dc91ceea33cd4 and will be in OpenSSH 8.9
closing bugs resolved before openssh-8.9