session freeze during linux nano edit of a file #2330
Replies: 5 comments 8 replies
-
As far as I can determine it is the OpenSSH_for_Windows program that is introducing the broken up "bracketed pastes" sequences in the character stream that is being sent to the SSH server. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Using the PR version from @lhecker now it is only 1.66 times slower than PuTTY for the same 93,298 character paste, taking 0.135 seconds to paste. Attached is a new graph with the "leonard" data added, from this version. |
Beta Was this translation helpful? Give feedback.
-
@lhecker , or anybody, does this code even know about "bracketed paste" mode? Neither the nano maintainer or I have been able to find any related code. If I understand correctly, nano expects the related escape sequences not to split across chunks and WIN-SSH is expecting whomever is on the other end to deal with it. I do not know if there is any specification for this or if something in between the two is supposed to deal with it. |
Beta Was this translation helpful? Give feedback.
-
There has been a fix committed on the nano bug report. Thanks for the help and explanations herein. |
Beta Was this translation helpful? Give feedback.
-
I communicate with various linux computers via OpenSSH_for_Windows_9.5p1 from my windows 11 computer. I edit files on the linux computers using the nano editor.
Sometimes after a copy and paste, the nano session freezes. I have to close the terminal session in windows and start again, often loosing the edits done prior to the freeze. I have tried every keystroke I can think of to try to get the session unfrozen, but so far nothing has worked. As far as I can determine the nano task seems to still be running.
How do I know the problem is on the OpenSSH_for_Windows? I don’t, and am pursuing the issue from the Ubuntu linux side also. Regardless, if there is some way to “kick” things out from being frozen it would very useful.
A couple of screen shots are attached.


EDIT:
For the same file:
nano 7.2 on Ubuntu server 24.04.1 fails.
nano 3.2 on Raspberry Pi passes.
nano 5.4 on Debian server 11 passes. <<< Correction: Fails.
nano 8.1 on Ubuntu desktop 24.10 VM guest on the Debian server host worked but pastes “10000~” instead of the copied “10000”.
nano 7.2 on Ubuntu desktop 24.04.2 VM quest on the Debian server host fails.
EDIT: same issue using "OpenSSH_for_Windows_9.8p1 Win32-OpenSSH-GitHub, LibreSSL 3.9.2"
Link to this same issue posted on Ubuntu discourse
EDIT: The root issue seems to be the breaking up of "bracketed pastes" in the middle of the "End of pasted text" sequence. Similar to this bug report , however in my example the paste buffer is only 5 characters.
Beta Was this translation helpful? Give feedback.
All reactions